Results 1 to 2 of 2

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

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Sencha User
    Join Date
    Sep 2012
    Posts
    13
    Answers
    1
    Vote Rating
    2
      0  

    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •