View Full Version : ExtJS 4.0 and MVC for Large Applications - File Structure

21 Feb 2012, 2:10 PM
I am writing a big application (a CRM) in Ext JS 4.0 using the new MVC File structure.
At the moment aside from the Views Directory I am using a flat file structure but the number of files is mounting and I'd like to start using folders for some logical grouping.
In my Controller I can prefix my stores with the folder e.g.
stores: ['history.Histories'] but I am unsure what this does to the getter. Will the following still work? or will it be something different?
I have experimented with the above and the app breaks but I can't work out why - though it appears as if the app never makes it to my getHistoriesStore() command so something else is causing the issue.

21 Feb 2012, 7:15 PM
So it never gets to where you are trying to get the store? Is there any errors that is preventing that?

26 Feb 2012, 11:11 AM
Fixed, the store can be called as:

Looks a little odd but allows for a better folder structure and now that it is working I'll use a different naming approach.

The other issue was I had an old Store reference in my Grid View.

Still learning...

27 Feb 2012, 8:38 AM
I suggest this topic if you use SenchaDesigner2 to build your large app: