Try this:
throw new Zend_Controller_Action_Exception('', 404);
Should work ;)
Giuliano
summertime wrote:
>
>
> I've got my error controller basically working, but I'm stumped on the
> best way to get people to it from other areas. Say my products controller
> can't find product123 in the database. I'd like to send the user a 404
> header and the error page. I thought I would do something to the effect
> of
>
> $this->_redirector = $this->_helper->getHelper('Redirector');
> $this->_redirector->setCode(303)
> ->setGotoSimple("error",
> "error");
>
> but I just not getting it.
>
> thanks
> summer
>
>
>
--
View this message in context:
http://www.nabble.com/best-method-to-get-people-to-the-error-controler-404-header-tp21035152p21049847.html
Sent from the Zend Framework mailing list archive at Nabble.com.