Autoloading and objects. (autoloading objects into namespaces)
Autoloading and objects. (autoloading objects into namespaces)
Here's the broken-down scenario, I've got a URL class in Ext. I wish to create a number of URL objects.
Right now, I'm just trying to figure out the best method for structuring everything and ideally supporting autoloading. The major issue I'm seeing is autoloading is for loading [object] classes and not the final objects into namespaces.
I could easily create a bunch of JSON objects and load manually, but I feel there must be a better way.
Does anyone have any suggestions or examples for handling and structuring [static] objects?
Even some various MVC patterns may be of some help, I understand the ExtJS MVC but that is not what I am looking for with this current project.
ComponentLoader has a load event just like a Store that you could put the response onto a namespace. Or you have a callback function you can pass to ComponentLoader.
I am trying to do something similar. I want to make a navigation widget that provides links with hash style hrefs (/resource/#!/widget). I would like to click on a link and load the corresponding widget (similar to how tabs work). I have created a view class that defines a container and it's items. I've tried using autoCreateViewport, autoRender, and autoShow in my views but the page just loads blank.