PDA

View Full Version : Where specify the controllers, models, views and stores to load?



neo1010
16 Oct 2014, 3:10 AM
Hy,

Where to specify the controllers, models, views, stores the application has to load?

1. Just in the object Ext.application ({
controllers : ['Users'], models: ['User'],
views : ['user.Edit'].
stores: ...
})

2. I have seen examples where in controller objects you specify models, views and stores

Is there a better approach? I think the option 1 is more centralized and better, right?

Thanks

Scott-1
16 Oct 2014, 11:25 AM
This is the start of a good example on structuring the layout
Talk specifics on code organization.

http://docs.sencha.com/extjs/4.2.2/#!/guide/mvc_pt1