Arh ha, ok thanks that's very helpful, I thought you could somehow trigger
it. I will go with this method then as it seems the easiest way to duplicate
the functionality.
Thank you.
Simon
Matthew Weier O'Phinney-3 wrote:
>
> At this point, the error handler only handles exceptions based on
> dispatching and your own application logic -- i.e., if the controller or
> action was not found, or if your controller code threw an exception.
>
> In the scenario you descrive, in a preDispatch() plugin, you can simply
> forward to the ErrorController:
>
> $this->getRequest()
> ->setModuleName('default')
> ->setControllerName('error')
> ->setActionName('error')
> ->setParams('error', $error)
> ->setDispatched(false);
>
> In the above example, I'm setting an 'error' parameter, and I'd alter
> the ErrorController::errorAction() method to look for that if no
> error_handler parameter is found.
>
> --
> Matthew Weier O'Phinney
> PHP Developer | [EMAIL PROTECTED]
> Zend - The PHP Company | http://www.zend.com/
>
>
--
View this message in context:
http://www.nabble.com/Using-Exceptions-in-a-Plugin-tf4706888s16154.html#a13456655
Sent from the Zend Framework mailing list archive at Nabble.com.