11 Oct 2012 5:19 PM #1
I'm trying to use Extjs4 MVC to achieve a manager system.So I need a Login page and system Index page.After login success,the page will jump to the index.html(The system main menu) .And If my Login page starting with Ext.application,and the index page also starting with Ext.application? How can I design the system with MVC mode?Can you give some suggestions?Thanks a lots!
11 Oct 2012 11:01 PM #2
Web apps based on ExtJS4 are supposed to be single browser page(.html/.php). In your case you can use a card layout which will help you to switch between pages(cards on same .html) based on some conditions, and you will have one workspace/Ext.application
12 Oct 2012 6:17 AM #3
interesting, is there any example or an in-depth explanation on how a many-page-site navigation flow should be implemented in accordance with extjs4 standards?
Lets say that we have a 3-staged flow:
1. a login
2. category/view selection
3. data manipulation
each stage is clearly separated from each other, with different views, hitting different services, only sharing some small stuff like css files. What would be the correct approach on this scenario?
12 Oct 2012 6:36 AM #4
the same approach described above, with card layout. If you have a large application then you split it up in subapplications, each subapp providing a specific similar or related group of functionalities, this is more complicated, but is achievable.
An example for a good start could be http://www.sencha.com/forum/showthread.php?152143
Also you can make authentication part in html&php, for example if in your backend you have an MVC php framework, after login you just redirect to a php view which has the links to your js files.