Zend_Controller_Action_Exception from preDispatch()
Posted
by Pavel Dubinin
on Stack Overflow
See other posts from Stack Overflow
or by Pavel Dubinin
Published on 2010-06-09T10:52:44Z
Indexed on
2010/06/12
12:13 UTC
Read the original article
Hit count: 178
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?
© Stack Overflow or respective owner