Threaded View

  1. #1
    Sencha User
    Join Date
    Aug 2013
    Posts
    64
    Vote Rating
    0
    Answers
    1
    kumar_Rajesh78 is on a distinguished road

      0  

    Default Answered: Which Class Structure to follow in Extjs5 - Help Needed.

    Answered: Which Class Structure to follow in Extjs5 - Help Needed.


    Hi Team,
    I am planning to migrate my application from extjs 4 to 5. This is the way I have structured my Models, view and controller.
    Sencha.png
    However, as per the extjs 5 documentation, it recommends using the following structure..
    Untitled.png

    My question is which structure shall I follow. Can I keep my old structure of code in place with Ext JS 5 or I will have to have these files. Main.js, MainController.js, MainModel.js. I did not have these files with ExtJs4.

    Appreciate your input and thanks in advance.
    Last edited by kumar_Rajesh78; 13 Jun 2014 at 8:48 AM. Reason: Changed the Title

  2. MVC that was in Ext 4 will work the same in Ext 5 so if you don't want to use view controllers then you don't have to, you can stick with global controllers.

    It's not going to be as easy as just replacing Ext, there are some changes. Most are documented in the upgrade guide but you should expect some changes going from one major version to another but we have tried hard to make the changes small.

Thread Participants: 2