1. #1
    Sencha User
    Join Date
    Sep 2012
    Posts
    13
    Vote Rating
    -1
    Answers
    1
    andyjv is an unknown quantity at this point

      0  

    Default Answered: Why doesn't Model config in a store automatically look in '/models/' directory?

    Answered: Why doesn't Model config in a store automatically look in '/models/' directory?


    Not sure I understand why in every other instance of referring to components in the MVC architecture of Sencha Touch 2, that in nearly every instance of referring to Store or a View, it by default looks in myapp/store and myapp/view, but when you're defining the model for a store, I have to set the config: 'myapp.model.mymodel', to tell it specifically to look in the Model directory.

  2. Same reason that xtype or xclass configs in an item array doesn't, just not built that way. In the soon future Sencha Cmd will be smart enough to look at these configs for the build part.

  3. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    St. Louis, MO
    Posts
    34,107
    Vote Rating
    453
    Answers
    3157
    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 mitchellsimoens has much to be proud of

      0  

    Default


    Same reason that xtype or xclass configs in an item array doesn't, just not built that way. In the soon future Sencha Cmd will be smart enough to look at these configs for the build part.
    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.