23 Nov 2011 6:18 PM #1
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?
24 Nov 2011 9:00 AM #2
- Join Date
- Mar 2007
- Gainesville, FL
- Vote Rating
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 @SenchaMitch
Sencha Inc, Senior Software Engineer
Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/
Need more help with your app? Hire Sencha Services firstname.lastname@example.org
Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!
When posting code, please use BBCode's CODE tags.
24 Nov 2011 11:58 PM #3
I understand, thank you very much.