View Full Version : MVC structure and views in index page
5 Dec 2011, 3:50 AM
Hi! I'd like to know the best way for don't load all views in my index.html page.
Is there a solution in ST2 for manage this problem??
If I've 10 views, do I've to load all 10 view in index.html page?
5 Dec 2011, 10:03 AM
If you mean loading the files, that is not an issue. You should use our SDK Tools to build a compressed version of your application.
If you mean having all the views rendered at the same time (for example, 10 views in a card layout), then perhaps you could dynamically add them using the Ext.Container.add (http://docs.sencha.com/touch/2-0/#!/api/Ext.Container-method-add) method.
5 Dec 2011, 10:37 AM
I mean this, suppose that my app has 20 views (list pages, details pages, about page .... etc)
In ST1 I've to include all these view in index.html; I think that this make app slow because all pages are loaded in index.html
In ST2 is it the same?
Powered by vBulletin® Version 4.1.5 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.