I'm fairly new the Zend Framework. I'd like to move my overall Error Handler
in to an Error Module. However I can't get it to work.

Everything works fine with the default error handler but then I try to use
the following code and it simply redirects every request to the default
modules Index Controller / Action.

require_once('Zend/Controller/Plugin/ErrorHandler.php');
$front->registerPlugin(new Zend_Controller_Plugin_ErrorHandler(array(
    'module' => 'Error',
    'controller' => 'Index',
    'action' => 'Index'
)));

The code came from an example on this list. How do I go about getting an
instance of the class? Nothing seems to be returned if I use:

$errorHandler = $front->getPlugin('Zend_Controller_Plugin_ErrorHandler');

Thanks for any help you can give.

Simon
-- 
View this message in context: 
http://www.nabble.com/Changing-the-ErrorHandler-Location-tf4684068s16154.html#a13384793
Sent from the Zend Framework mailing list archive at Nabble.com.

Reply via email to