vendredi 17 octobre 2014

Views not loaded by Ext.application

When defining the next in ExtJS 4.2:

Ext.application({

name: 'Demo',

appFolder :'app',

controllers : ['Users'],

models: ['User'],

stores: ['Users'],

views : ['user.List', 'user.Edit'],

launch: function() {

Ext.create('Ext.container.Viewport', {

layout: 'fit',

items: [

{

xtype: 'gridUsuarios'

}

]

});

}


1. The js view files are not loaded and I dont know why because in the api it shows this property. Although the documentation says the next in an example: "Note that we didn't actually list the Views directly in the Application itself. This is because Views are managed by Controllers, so it makes sense to keep those dependencies there", it should load these files in the Ext.Application, right?


2. When defining your views in the Controllers instead of in the Ext.Application, you just get to download the related js files or are there other advantages ?


Thanks






Views not loaded by Ext.application

Aucun commentaire:

Enregistrer un commentaire