There are two ways to do that:
1. Mappings. Map classes and globals into the namespace you're querying from. This would work if there's no global/class collisions of course.
2. Custom queries. Here's an article on the topic. And here's an example.
3. Just set $namespace before running your query. Works only if you need to query one other namespace at a time. Example.
- Log in to post comments
.png)
.png)
.png)
.png)