sj_tt6
4 Sep 2012, 2:30 PM
Hi,
I have used Sencha to develop a couple applications and I like the capabilities of Sencha. Now I develop a new application and I have problems with design. I hope get advices or hint from this forum.
My application has 2 types of users: end users and administrators. My first thought is my application has login, registration, record, and administration pages.
1.login page: end users and admin enter username and password to log in. There is a hyperlink for registration
2. Registration page: if the end user clicks on the link this page is open for the user entering info
3. Record page: if the end user successfully registers the user sees this page next that shows all information. (s)he can update information in the account on this page.
4. Administration page: After the admin logged in, (s)he sees this page that shows all user accounts.
If I use MVC to develop I have 1 index.html, 1 app.js, 1 viewport.js. I have no idea how to make the view port to display different pages (above) dynamically according to each use case.
Or should I create 2 index files, 2 app.js files, and 2 viewport.js files for end user and administrator ?
Thank you,
I have used Sencha to develop a couple applications and I like the capabilities of Sencha. Now I develop a new application and I have problems with design. I hope get advices or hint from this forum.
My application has 2 types of users: end users and administrators. My first thought is my application has login, registration, record, and administration pages.
1.login page: end users and admin enter username and password to log in. There is a hyperlink for registration
2. Registration page: if the end user clicks on the link this page is open for the user entering info
3. Record page: if the end user successfully registers the user sees this page next that shows all information. (s)he can update information in the account on this page.
4. Administration page: After the admin logged in, (s)he sees this page that shows all user accounts.
If I use MVC to develop I have 1 index.html, 1 app.js, 1 viewport.js. I have no idea how to make the view port to display different pages (above) dynamically according to each use case.
Or should I create 2 index files, 2 app.js files, and 2 viewport.js files for end user and administrator ?
Thank you,