[fw-general] Re: How to handle 404

2011-02-10 Thread Wil Moore III
Jurian Sluiman wrote: > > 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 > +1 - -- Wil Moore III Why is Bottom-posting better than Top-postin

Re: [fw-general] Re: How to handle 404

2011-02-09 Thread Jurian Sluiman
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 Fo

[fw-general] Re: How to handle 404

2011-02-09 Thread whisher
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'); -- View this message in context: http://zend-framewo