How to enable direct access to ErrorController in Zend

aviv258958

New Member
I use ErrorHandler in my application to intercept exceptions, but I also want to be able to redirect user to error screen using URL:\[code\]class SomeController extends Zend_Controller_Action { public function someAction() { ... $this->_redirect('/error/device-unknown/id/12345'); }}\[/code\]This however takes me to standard web server 404 page.I know I could use \[code\]$this->_forward()\[/code\] instead, but I already get target location in form of URL. Is there a way to make Zend use URL to present error screen?
 
Back
Top