On 6/25/07, Braindead <[EMAIL PROTECTED]> wrote:
>
>
> Hi, I'm using CakePHP for a week now. And now I'm searching for a
> possibility to force a 404 error (and display the 404 error page) in a
> controller when certain conditions are met.
if(!$page)
{
$this->cakeError('error404',array(array('url'=>$shortTitle)));
}
HTH
T
--
=============================================================
Cheesecake-Photoblog: http://cheesecake-photoblog.org
PHP for E-Biz: http://sanisoft.com
=============================================================
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---