Hi Stuardo,

> But how do you set the router in the static method?
> 
> $router =  new Zend_Controller_RewriteRouter();
> $controller->setRouter($router);

If you use the static Zend_Controller_Front::run() method you cannot set
the router. In these cases, the default router will be used.

To set the router you will need an instance of Zend_Controller_Front
which you get by calling the static Zend_Controller_Front::getInstance()
method.

Hope this helps.

Best Regards,

Ralf

Reply via email to