Yes, and no.
This post (http://www.alexatnet.com/Blog/Index/2006-10-09/a-little-bit-more-about-zend_controller-plugins) describes using a plugin to change the value of the controllers directory for a request. This merely acts to segregate controllers into separate directory trees - it does not require you to add an extra subdirectory to the URI of the request.
Pádraic
Pádraic Brady
http://blog.quantum-star.com
http://www.patternsforphp.com
This post (http://www.alexatnet.com/Blog/Index/2006-10-09/a-little-bit-more-about-zend_controller-plugins) describes using a plugin to change the value of the controllers directory for a request. This merely acts to segregate controllers into separate directory trees - it does not require you to add an extra subdirectory to the URI of the request.
Pádraic
Pádraic Brady
http://blog.quantum-star.com
http://www.patternsforphp.com
----- Original Message ----
From: Peter Pistorius <[EMAIL PROTECTED]>
To: Zend Framework General <[email protected]>
Sent: Tuesday, October 10, 2006 4:52:09 PM
Subject: [fw-general] Subdirectory Routes
From: Peter Pistorius <[EMAIL PROTECTED]>
To: Zend Framework General <[email protected]>
Sent: Tuesday, October 10, 2006 4:52:09 PM
Subject: [fw-general] Subdirectory Routes
Hello everyone,
I have a question concerning routes:
Is it possible to set up a route that looks for the ":controller" in a
subdirectory (/admin/:controller/:action) of the controllers?
By example:
http://example.org/admin/controller/action,
would resolve "/path/to/application/controllers/admin/controller.php"
and execute controller::action
I know that ZFW can work out of a subdirectory... but this is sort of a
different situation, as I want both the root "/" and "/admin/" working
off the same copy of ZFW.
Kind regards,
Peter Pistorius
I have a question concerning routes:
Is it possible to set up a route that looks for the ":controller" in a
subdirectory (/admin/:controller/:action) of the controllers?
By example:
http://example.org/admin/controller/action,
would resolve "/path/to/application/controllers/admin/controller.php"
and execute controller::action
I know that ZFW can work out of a subdirectory... but this is sort of a
different situation, as I want both the root "/" and "/admin/" working
off the same copy of ZFW.
Kind regards,
Peter Pistorius
