Thnx Matthew, the plugin works fine. 
Best regards
 /Ralf

> If you want to have it dynamically change per-action, the easiest way
> would be to create a plugin that runs a preDispatch(); it would look
> something like this:
> 
>     class OverrideErrorModule extends Zend_Controller_Plugin_Abstract
>     {
>         public function preDispatch(Zend_Controller_Request_Abstract $request)
>         {
>             $module = $request->getModuleName();
>             $errorHandler = Zend_Controller_Front::getInstance()
>                         ->getPlugin('Zend_Controller_Plugin_ErrorHandler');
>             $errorHandler->setErrorHandlerModule($module));
>         }
>     }
> 
> and then make sure to register this in your bootstrap:
> 
>     $front->registerPlugin(new OverrideErrorModule());
> 

Reply via email to