In ZF maillist (http://framework.zend.com/wiki/display/ZFMLGEN/mail/12167)
there was such workaround:

class Plugin_Notfound extends Zend_Controller_Plugin_Abstract
{
   public function preDispatch($request) {
       $dispatcher = Zend_Controller_Front::getInstance()->getDispatcher();
       if (!$dispatcher->isDispatchable($request))
       {
           $request->setControllerName($dispatcher->getDefaultController())
           ->setActionName('noRoute')
           ->setDispatched(false);
       }
   }
}

$controller = Zend_Controller_Front::getInstance();
$controller->registerPlugin(new Plugin_Notfound);
...
Zend_Controller_Front::run("$path/controllers");

Reply via email to