Results 1 to 3 of 3

Thread: MVC Question

  1. #1
    Sencha User
    Join Date
    Sep 2007
    Posts
    118
    Answers
    1
    Vote Rating
    0
      0  

    Default MVC Question

    I have an app that I am converting from 3.x to Ext4 MVC. I have everything working, but I have a question as to the best way to handle something. I have a nav tree with about 45 pagesthat a user can click on. When they click on a Navitem I need to load that Panel into the TabPanel. Obviously I would like to do this dynamically. I know I could require all the controllers when the app launches but I do feel that is the best. What do some of you suggest would be the best practice here?

    Thanks
    Tim

  2. #2
    Sencha Developer
    Join Date
    Sep 2008
    Location
    Antioch, IL
    Posts
    1,516
    Answers
    99
    Vote Rating
    1593
      1  

    Default

    Personally, I would include all Controllers on app launch.

    However, the answer really depends on your application. If requiring all Controllers at startup results in loading too many dependencies (hurting performance), obviously you should implement a different solution.

  3. #3
    Sencha User
    Join Date
    Sep 2007
    Posts
    118
    Answers
    1
    Vote Rating
    0
      0  

    Default

    Quote Originally Posted by arthurakay View Post
    Personally, I would include all Controllers on app launch.

    However, the answer really depends on your application. If requiring all Controllers at startup results in loading too many dependencies (hurting performance), obviously you should implement a different solution.
    Yeah that would be over 40 dependencies at launch. WHen the user may only want to open one tab.

Posting Permissions

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