I'm creating a frame application. Inside the frame you can click menu items. Those items load an application in the container next to it.
Capture3.PNG
my folder structure:
Capture4.PNG
Like my test app there will be more apps..
first idea was to use
Code:
Ext.require('TestApp.app.view.MyContainer',function(){
console.log('loaded the required class', 'MyContainer');
//when this is fire I could create an instance and add it to the container.
}, this);
2 problems:- TestApp.app.view.MyContainer <=> TestApp.view.MyContainer
The classname is Test.view.MyContainer but the folder is TestApp/app/view/MyContainer
- the callback method doesn't fire. When does supposed to fire?
To summarize my questions:- Is this a good approach or should I load the app.js?
- How should I load it?
- How about required controllers/stores/models/views and those references (where should I put them)?