On Wednesday 09 Feb 2011 22:45:20 whisher wrote:
> or
>
> $this->_helper->viewRenderer->setNoRender();
> $this->_helper->getHelper('layout')->disableLayout();
> $this->getResponse()
> ->setBody('HTTP/1.1 404 Not Found')
> ->setRawHeader('HTTP/1.1 404 Not Found');
It's a better approach to let the errorController handle the error.
1) The code is centralized in one place
2) You can use the errorController's views to display additional information
Regards, Jurian
--
Jurian Sluiman
Soflomo - http://soflomo.com