Results 1 to 3 of 3

Thread: Nesting multiple MVC Applications

  1. #1
    Sencha User
    Join Date
    Nov 2010
    Posts
    2
    Vote Rating
    0
      0  

    Default Nesting multiple MVC Applications

    I want to create a rather complex app with the following architecture:

    MainApp
    - Views
    - Stores
    - Controllers

    Exensions.App1
    - Views
    - Stores
    - Controllers

    Exensions.App2
    ...

    The main app would be responsible for loading and controlling the Extension Apps.
    The Extension Apps should be independent of each other and would only require some core/common components to run outside the Main App.

    Is this approach feasible at all?

    In my current approach I've gotten the main and an extension app to run separately, but not the main app to load an extension.
    My extension app lools something like this:
    Code:
    Ext.define('ISA.extensions.customer',{
        extend:'Ext.app.Application',
        alias:'customer',
        name: 'ISA.extensions.customer',
        appFolder: 'app',
        controllers: [
            'Users'
        ],
        launch: function() {
            Ext.create('Ext.panel.Panel', {
                layout:'border',
                height: 400,
                renderTo:  this.renderTo,
                defaults: {
                    collapsible: false,
                    split: false,
                    bodyStyle: 'padding:0px'
    
    
                },
                items: [{
                    title: 'Customer App',
                    region:'center',
                    margins: '0 0 0 0',
                    cmargins: '0 0 0 0',
                    width: 175,
                    minSize: 100,
                    maxSize: 250,
                    items: {
                        xtype: 'userlist'
                    }
                }]
            });
        }
    });

  2. #2
    Sencha Premium Member
    Join Date
    Aug 2008
    Posts
    60
    Vote Rating
    7
      0  

  3. #3
    Ext JS Premium Member westy's Avatar
    Join Date
    Feb 2009
    Location
    Bath, UK
    Posts
    1,019
    Vote Rating
    106
      0  

    Default

    There was a guy at SourceDevCon who chatted about this, and it seemed to work well...

    Here's his github: https://github.com/Fredric/ExtJS-Multiple-MVC
    I've not had a chance to look at it yet.
    Product Architect
    Altus Ltd.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •