-
21 Feb 2012 2:10 PM #1
Unanswered: ExtJS 4.0 and MVC for Large Applications - File Structure
Unanswered: ExtJS 4.0 and MVC for Large Applications - File Structure
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.but I am unsure what this does to the getter. Will the following still work? or will it be something different?Code:stores: ['history.Histories']
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.Code:getHistoriesStore()
-
21 Feb 2012 7:15 PM #2Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,582
- Vote Rating
- 433
- Answers
- 3101
So it never gets to where you are trying to get the store? Is there any errors that is preventing that?
Mitchell Simoens @SenchaMitch
Sencha Inc, Senior Forum Manager
________________
http://www.JSONPLint.com - Source to lint your JSONP!
Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
https://github.com/mitchellsimoens
Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/
Need more help with your app? Hire Sencha Services services@sencha.com
Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is almost in print!
When posting code, please use BBCode's CODE tags.
-
26 Feb 2012 11:11 AM #3
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.Code:getHistoryHistoriesStore()
The other issue was I had an old Store reference in my Grid View.
Still learning...
-
27 Feb 2012 8:38 AM #4
I suggest this topic if you use SenchaDesigner2 to build your large app:
http://www.sencha.com/forum/showthre...ple-Namespaces


Reply With Quote