Problem with MVC architecture
Posted: Tue Aug 12, 2008 8:24 am
Hi everyone,
I've just started with MVC model and I'm tryin to create simple administrative application. I have following question: how architecture of page with 3 - level menu should look like?
Let say that structure of menu looks like this:
1 menu: configuration | page administration (chosen) |
2 menu: news | products (chosen) | articles
3 menu: add | list
It may sound silly, but this is the essence of my problem.
Choosing from third level menu causes displaying proper view. ex. choosing "add" causes displaying view with proper form. So as far as I'm concerned it should be controller "products" and his method "add_form" displaying view "product_add". But what to do before that third menu is clicked?
If somebody experienced could tell me how architecture of such system should look like I would be thankfull.
(I'm implementing my application in CodeIgniter)
Thanks for your time!
I've just started with MVC model and I'm tryin to create simple administrative application. I have following question: how architecture of page with 3 - level menu should look like?
Let say that structure of menu looks like this:
1 menu: configuration | page administration (chosen) |
2 menu: news | products (chosen) | articles
3 menu: add | list
It may sound silly, but this is the essence of my problem.
Choosing from third level menu causes displaying proper view. ex. choosing "add" causes displaying view with proper form. So as far as I'm concerned it should be controller "products" and his method "add_form" displaying view "product_add". But what to do before that third menu is clicked?
If somebody experienced could tell me how architecture of such system should look like I would be thankfull.
(I'm implementing my application in CodeIgniter)
Thanks for your time!