Zend_Controller_Action_Exception from preDispatch()
- by Pavel Dubinin
How to I redirect to 404 page ("page not found") at preDispatch?
Normally within action I can simply write:
throw new Zend_Controller_Action_Exception('Page is not found!', 404);
And it forwards to the appropriate page. How do I make it work for preDispatch?