Welcome, Guest. Register Now!
   
Mark Forums Read Mark Forums Read Mark Forums Read


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 08-21-2007, 04:48 AM
Junior Member
 
Join Date: Jul 2007
Location: Brisbane, Australia
Posts: 9
Question Deeper levels of Module/Controller

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.
__________________
Brenton Alker
Brisbane, Australia

http://blog.tekerson.com/
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 08-21-2007, 06:11 PM
SpotSec's Avatar
Senior Member
 
Join Date: Feb 2007
Location: United States
Posts: 121
Default

Action Controller Directory Tree - Christopher Thompson - Zend Framework Proposals - Zend Framework Wiki
__________________
Zym Framework - A Zend Framework extension library w/ demo app

SpotSec Blog:
http://spotsec.com/blog
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 08-21-2007, 11:25 PM
Junior Member
 
Join Date: Jul 2007
Location: Brisbane, Australia
Posts: 9
Default

That does look like a promising proposal, might have to have a closer look.
Thanks for the link.
__________________
Brenton Alker
Brisbane, Australia

http://blog.tekerson.com/
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 09-12-2007, 06:05 AM
Junior Member
 
Join Date: Sep 2007
Posts: 1
Wink The page cannot be displayed

Link die "The page cannot be displayed" Please send me new link

thank you
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 08:47 PM.