1. #1
    Sencha User VDP's Avatar
    Join Date
    Feb 2012
    Location
    Boom, Belgium
    Posts
    87
    Vote Rating
    10
    Answers
    3
    VDP will become famous soon enough

      0  

    Default Answered: Loading applications inside an application

    Answered: Loading applications inside an application


    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:
    1. TestApp.app.view.MyContainer <=> TestApp.view.MyContainer

      The classname is Test.view.MyContainer but the folder is TestApp/app/view/MyContainer
    2. 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)?

  2. See detailed reply on stackoverflow.

  3. #2
    Sencha User Izhaki's Avatar
    Join Date
    Apr 2009
    Location
    London
    Posts
    118
    Vote Rating
    13
    Answers
    7
    Izhaki will become famous soon enough

      1  

    Default


    See detailed reply on stackoverflow.

  4. #3
    Sencha User VDP's Avatar
    Join Date
    Feb 2012
    Location
    Boom, Belgium
    Posts
    87
    Vote Rating
    10
    Answers
    3
    VDP will become famous soon enough

      0  

    Default


    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/showthre...-Applications)

    Thanx for getting me on my way.

Thread Participants: 1

Tags for this Thread