Threaded View

  1. #1
    Sencha User
    Join Date
    Sep 2012
    Vote Rating
    andyjv is on a distinguished road


    Default 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.

Thread Participants: 1