Has the method of passing controller and action overrides to a 
Zend_Controller_Router_Route changed for 0.6.0? The migrations state that it 
should work ask before but it doesn't.

$router = new Zend_Controller_RewriteRouter();
$router->addRoute('catalog', new 
Zend_Controller_Router_Route('catalog/:category/:limit/:offset', 
array('controller'=>'catalog', 'action' => 'index', 'category'=>20002, 'limit' 
=> 100, 'offset'=>0)));
$ctrl = Zend_Controller_Front::getInstance();
$ctrl->throwExceptions(true);
$ctrl->setRouter($router);
//...
Zend_Controller_Front::run($basePath . '/application/controllers');

For url -- /catalog/60221/

Results in.

Uncaught exception 'Zend_Controller_Exception' with message 
'CatalogController::60221Action() does not exist and was not trapped in 
__call()' 



Attachment: smime.p7s
Description: S/MIME cryptographic signature

Reply via email to