Am playing a bit with the ZF – basically doing shiflett’s tutorial on it, when I came upon a bit of a problem.
*Right about here I should note I haven’t even looked at the ZF in almost a year and quite a bit has changed.
Anyway – I am using a subfolder of web root to play with the ZF and was having troubles getting my controller to go to the correct place. After considering hacking both the Apache doc root and the actual Zend_Controller_Router code and writing a patch, I stumbled on the answer – Zend_Controller_RewriteRouter.
-
// url – http://localhost/Test/www/:controller/:action
-
$router = new Zend_Controller_RewriteRouter();
-
$router->setRewriteBase(‘/Test/www/’);
-
$controller->setRouter($router);
Seems to be working so far.
