PDA

View Full Version : Loading applications inside an application



VDP
11 Jul 2012, 1:31 AM
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.

37044

my folder structure:

37045

Like my test app there will be more apps..

first idea was to use


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)?

Izhaki
11 Jul 2012, 3:20 AM
See detailed reply on stackoverflow (http://stackoverflow.com/questions/11427254/parent-child-application-model-loading-whole-applications-in-a-container).

VDP
11 Jul 2012, 3:51 AM
Thanks!! Mitchell Simoens' project at https://github.com/mitchellsimoens/SubAppDemo seems very usefull.

I think I was searching the wrong things because I found another useful thread.

(http://www.sencha.com/forum/showthread.php?133087-Multiple-Ext.Applications-(Big-Applications)&highlight=SubAppDemo)http://www.sencha.com/forum/showthread.php?133087-Multiple-Ext.Applications-(Big-Applications)

Thanx for getting me on my way.