Results 1 to 3 of 3

Thread: Touch2 MVC one controller one view?

  1. #1
    Sencha User
    Join Date
    Mar 2011
    Location
    Shanghai
    Posts
    71
    Vote Rating
    3
      0  

    Default Touch2 MVC one controller one view?

    I want to use Sencha-Touch2 MVC, I find that the examples such as "Kiva", "Twitter":
    one controller control all the views.

    So I want to ask if my App is a litter complex and contains many views, is it better that one controller control one view?

  2. #2
    Sencha User mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    40,050
    Vote Rating
    1381
      0  

    Default

    In a complex app, I don't have controllers based on views... I have controllers based on features but each controller can use as many views (and many instances of a view) as it needs to use.
    Mitchell Simoens @LikelyMitch
    Modus Create, Senior Frontend Engineer
    ________________
    Need any sort of Ext JS help? Modus Create is here to help!

    Check out my GitHub:
    https://github.com/mitchellsimoens

  3. #3
    Sencha User
    Join Date
    Mar 2011
    Location
    Shanghai
    Posts
    71
    Vote Rating
    3
      0  

    Default

    I understand, thank you very much.

Posting Permissions

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