I`ve website sections stored in db. Each section has zero or more children
which then can also have children... so these sections are stored as a tree
structure.
Here is a sample sections hierarchy with url addresses:
-Home (http://domain.com/)
-About (http://domain.com/about/)
    -Structure (http://domain.com/about/structure/)
        - Something (http://domain.com/about/structure/something/)
    -History (http://domain.com/about/history/)
    -Mission (http://domain.com/about/mission/)
-Forum (http://domain.com/forum/)
-Contact (http://domain.com/contact/)

I`d like to have three controllers:
- home - IndexController
- Forum - ForumController
and SectionController which searches for the section in DB (based on URL) to
load appropriate content.
So standard :module/:controller/:action/:params is fine, but if there is no
controller i.e. "about" the router is redirecting to SectionController which
looking for the section "about" and loading data for it if exists. If not
than forward to ErrorController::errorAction or throw exception.

Could you please advice me how to achive it? Or maybe there is easier way to
get the same result?
Thanks for any suggestions
-- 
View this message in context: 
http://www.nabble.com/tree-structure-and-routes-tp20771275p20771275.html
Sent from the Zend Framework mailing list archive at Nabble.com.

Reply via email to