|
|||
|
Hi.
It is easy to make website which uses one controller to manage one section. How about situation: I want to have my sections generated from db, where are stored in tree structure model? I want to get section x, and load it content. It is typical CMS functionality to manage website sections. I`d like to use ZF MVC approach so I`m thinking about: 1. check if controller exists 2. if doesn`t exist use errorController 3. redirect to the SectionsController 4. check if param name exists in DB as a section 5. if exists load appropriate content, else '404' Of course if controller exists it is used as default. New section or subsection or subsubsection... is easy to add, edit or remove. It`s possible to generate sitemap, etc. What do you think about this approach? Am I going in the right direction or maybe I`m missing something and trying to find solution which is already fount. Thanks for any suggestions. Regards Last edited by Michał : 04-22-2008 at 09:09 AM. |
![]() |
| Thread Tools | |
| Display Modes | |
|
|