5?????1????5??????

????: extjs mvc am

  1. #1
    Ext JS Premium Member holicon_abg's Avatar
    ????
    Mar 2011
    ??
    Poznan, Poland
    ???
    52

    ????? extjs mvc am

    @link http://docs.sencha.com/ext-js/4-0/gu...n_architecture

    not enought information i do this tutorial stay by step and i have errors like this:

    The following classes are not declared even if their files have been loaded: 'AM.view.Viewport'. Please check the source code of their corresponding files for possible typos: '/js/app/view/Viewport.js'

    mine viewport is empty. pls specify more details in documentation.

  2. #2
    Sencha User
    ????
    Sep 2008
    ??
    Paris, France
    ???
    18

    ?????

    You can add
    ???:
    autoCreateViewport: false
    on top of the application class.

    Or you can create Viewport.js file but I guess you need to declare and empty class that match the name:
    ???:
    Ext.define('AM.view.Viewport', {
    });

  3. #3
    Ext JS Premium Member holicon_abg's Avatar
    ????
    Mar 2011
    ??
    Poznan, Poland
    ???
    52

    ?????

    good one

  4. #4
    Ext JS Premium Member
    ????
    Apr 2010
    ??
    Montreal, Canada
    ???
    265

    ?????

    +1

    thank you

  5. #5
    Sencha Premium Member
    ????
    Oct 2010
    ???
    99

    ?????

    I followed latest(?) documentation from http://dev.sencha.com/deploy/ext-4.0...hitecture.html

    I removed launch function from App.js and my Viewport.js looks like this:

    PHP???:
    Ext.define('AM.view.Viewport', {
        
    extend'Ext.container.Viewport',

        
    requires: [
            
    //'FV.view.Viewer',
            //'FV.view.feed.List',
            
    'Ext.layout.container.Border'
        
    ],

        
    layout'border',

        
    items: [
            {
                
    region'north',
                
    autoHeighttrue,
                
    html'Navigation and logout link'
            
    },
            {
                
    region'center',
                
    xtype'panel',
                
    html'Center'
            
    },
            {
                
    region'west',
                
    width225,
                
    xtype'panel',
                
    html'West'
            
    }
        ]
    }); 
    Last edited by devnullable; 27 Apr 2011 at 08:17 AM. ??: Typo

???????

  1. Passing arguments -- Refer Extjs In action book and ExtJs sample code
    By mrag74 in forum Ext 3.x: Help & Discussion
    ??: 1
    ?????: 28 Apr 2011, 02:11 PM
  2. ??: 2
    ?????: 24 Apr 2011, 12:28 PM

?????

  • ???????????????????
  • ????????????
  • ???????????????????
  • ?????????????
  •