I've tried the following :

$request->setDispatched(true);
$this->getResponse()->clearBody();
$this->getResponse()->setException(new
My_Exception_AclResourceNotFound("test"));

throw new My_Exception_AclResourceNotFound('Page doesn\'t exist.');

But none of those will work. I will always have two pages outputted: 
the requested action's rendering and below the errorAction's rendering.



Tobias Petry wrote:
> 
> Maybe the following will work (not tested):
> 
> $this->_request->setDispatched(true);
> 

-- 
View this message in context: 
http://www.nabble.com/Proper-way-to-stop-a-request-from-preDispatch---tp25108403p25133166.html
Sent from the Zend Framework mailing list archive at Nabble.com.

Reply via email to