|
|||
|
Hi,
Just wondering if anyone is aware of an elegant method or creating "sub-controllers" or "sub-modules" (depending on you point of view). In a system I am currently creating, I am using an "admin" module for the back-end functions, but there are components inside that that have 2 (or more) levels of entities to be managed. Eg. There is a "Survey" controller, but a survey consists of "Sections" and "Questions". Currently, I am just using one Survey controller with actions like "listQuestion", "listSection", "createQuestion" ... (you get the point). It would be nice to have a subdirectory inside the controllers to allow "Question" and "Section" to be there own controller and have URLS like: /admin/survey/question/list/ It tidies up both the contoller code, and the URL's. I figure this can be done by overwriting the frontcontroller, dispatcher or router. But I haven't looked into that (yet) in hope there is an way already within the framework. |
|
||||
|
__________________
Zym Framework - A Zend Framework extension library w/ demo app SpotSec Blog: http://spotsec.com/blog |
|
|||
|
That does look like a promising proposal, might have to have a closer look.
Thanks for the link. |
|
|||
|
Quote:
thank you |
![]() |
| Thread Tools | |
| Display Modes | |
|
|