1. #1
    Sencha User
    Join Date
    Jan 2011
    Posts
    4
    Vote Rating
    0
    koke is on a distinguished road

      0  

    Default MVC in EXTJS4, folder structure?

    MVC in EXTJS4, folder structure?


    Hi everybody!



    Does anybody know how will the folder structure and extjs4 model-view controller finally be ??



    And, could anybody give me information about it, please ??



    Thanks a million

  2. #2
    Ext JS Premium Member
    Join Date
    May 2008
    Posts
    190
    Vote Rating
    63
    sg707 is a jewel in the rough sg707 is a jewel in the rough sg707 is a jewel in the rough

      0  

    Default


    Typically it falls into

    /controller
    /model
    /view

    Above is not ExtJS4 folder structure, just a general folder structure used for any MVC framework.

  3. #3
    Sencha - Support Team scottmartin's Avatar
    Join Date
    Jul 2010
    Location
    Houston, Tx
    Posts
    9,197
    Vote Rating
    482
    scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future

      0  

    Default


    IIRC, one of the conference videos display the structure when it was presented.

    Regards,
    Scott.

  4. #4
    Ext JS Premium Member westy's Avatar
    Join Date
    Feb 2009
    Location
    Bath, UK
    Posts
    966
    Vote Rating
    72
    westy is just really nice westy is just really nice westy is just really nice westy is just really nice westy is just really nice

      0  

    Default


    When you call Ext.regApplication is creates a namespace for your application, and the sub-namespaces:
    application.models
    application.views
    application.controllers
    application.stores

    You can see this in src/Application.js

    I've been laying out my code in the same way, in-line with how you generally layout namespaces in another language on disk (i.e. .NET).

    I have a few applications spread across repos, and seems to work well. The main application entry point sorts the viewport out, with the other application launch methods wiring up Direct providers and stuff as needed.

    Cheers,
    Westy

  5. #5
    Sencha User
    Join Date
    Mar 2011
    Posts
    1
    Vote Rating
    0
    Rbk is on a distinguished road

      0  

    Default


    Hi,

    I searched the conference video that shows this structure but can not find it. Please, someone has a link to this video?

    Thanks very much

  6. #6
    Sencha User
    Join Date
    Jul 2010
    Posts
    35
    Vote Rating
    0
    mmartz is on a distinguished road

      0  

    Default


    The slides are on slideshare.

    The video is on vimeohttp://vimeo.com/17705448.

  7. #7
    Sencha User
    Join Date
    Jun 2011
    Location
    Ukraine, Mykolayiv
    Posts
    101
    Vote Rating
    1
    rsqw is on a distinguished road

      0  

    Default Module-based MVC folder-structure

    Module-based MVC folder-structure


    Hi,

    Is it possible to create another folder-structure for Extjs4 MVC-application with modules, because if application's controllers count is too large, it will be a headache to write another mvc-component and maintain all my code. In my test-application I cannot create module-structure, because of Ext.Loader. What is the best solution for this?

Similar Threads

  1. Replies: 2
    Last Post: 6 Feb 2011, 4:27 PM
  2. Parent folder icon changed on deletion of child folder
    By sachin sachdeva in forum Ext 3.x: Help & Discussion
    Replies: 0
    Last Post: 11 Oct 2010, 10:20 PM
  3. Parent folder icon changed on deletion of child folder
    By sachin sachdeva in forum Ext 3.x: Help & Discussion
    Replies: 0
    Last Post: 11 Oct 2010, 9:47 PM
  4. Folder Structure (Path) Problem
    By sosamv in forum Ext 2.x: Help & Discussion
    Replies: 5
    Last Post: 30 Jun 2009, 11:40 AM
  5. Empty tree folder expand -> want still be folder
    By iliakan in forum Ext 1.x: Help & Discussion
    Replies: 2
    Last Post: 17 Aug 2007, 12:38 PM

Thread Participants: 6