PDA

View Full Version : Touch2 MVC one controller one view?



perry_jia
23 Nov 2011, 6:18 PM
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?

mitchellsimoens
24 Nov 2011, 9:00 AM
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.

perry_jia
24 Nov 2011, 11:58 PM
I understand, thank you very much.