Take a look at the view script errors/error.phtml. Last time I looked, it was testing if the APPLICATION_ENV constant matched "development". If it matched, it would display the exception info.
-- Hector 2010/2/28 Dasn <[email protected]> > Hi guys, I'm trying to control the ErrorController via turning > on/off the 'displayExceptions' in a controller, for example: > > class ViewController extends Zend_Controller_Action > { > > public function init() > { > /* Initialize action controller here */ > $front=$this->getFrontController(); > $front->setParam('displayExceptions', 0); > } > } > > I found the value of 'displayExceptions' was changed, but did not > have any effects. Any idea to archive this? > > Thanks. > >
