Reputation: 34979
Consider I have defined this namespace Boo
as this path /Plugins/Content/App
.
Now I need to load a script with Ext.Loader.require
from /Plugins/Content
.
How can I load a content from a backward folder with Boo
namespace? Is there any solution like Ext.Loader.require("Boo/../")
that set the cursor to /Plugins/Content
?
Upvotes: 0
Views: 279
Reputation: 23983
I never tried that but you should be able to archive this with setPath() for your defined namespace. After that you can use Ext.Loader.require()
on a class of this namespace.
To take credit to the comments:
No, this isn't possible.
The ClassManager will not be able to identify a possible classname and will so not be able to find a possible namespace to use for loading.
Why?
The ClassManager does not take care about the nav part /../
which would then cause problems
Upvotes: 1