1. #1
    Sencha Premium Member
    Join Date
    Jul 2010
    Posts
    2
    Vote Rating
    1
    ctyule is on a distinguished road

      0  

    Default 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.
    Code:
    stores: ['history.Histories']
    but I am unsure what this does to the getter. Will the following still work? or will it be something different?
    Code:
    getHistoriesStore()
    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.

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    St. Louis, MO
    Posts
    33,582
    Vote Rating
    433
    Answers
    3101
    mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of

      0  

    Default


    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.

  3. #3
    Sencha Premium Member
    Join Date
    Jul 2010
    Posts
    2
    Vote Rating
    1
    ctyule is on a distinguished road

      1  

    Default


    Fixed, the store can be called as:
    Code:
    getHistoryHistoriesStore()
    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...

  4. #4
    Sencha User
    Join Date
    Nov 2011
    Posts
    77
    Vote Rating
    2
    yAdEs is on a distinguished road

      0  

    Default


    I suggest this topic if you use SenchaDesigner2 to build your large app:
    http://www.sencha.com/forum/showthre...ple-Namespaces