Re: How to force a 404 error?

2007-06-26 Thread Braindead
@Tarique: Thanks for your help. That was exactly what I was searching for! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to cake-php@googlegroups.com To

Re: How to force a 404 error?

2007-06-25 Thread djiize
the simple way: $this-redirect('qsdfqsdf'); // or whatever non-existent page you want (/page-doesnt-exist for instance) notice: only work with DEBUG = 0 On 25 juin, 10:28, Braindead [EMAIL PROTECTED] wrote: Hi, I'm using CakePHP for a week now. And now I'm searching for a possibility to force

Re: How to force a 404 error?

2007-06-25 Thread Dr. Tarique Sani
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) {