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
    Gainesville, FL
    Posts
    36,801
    Answers
    3467
    Vote Rating
    834
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      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
    ________________
    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 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

Thread Participants: 2

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi