how about

class AppController extends Controller {
  function beforeRender() {
    if ($this->viewPath == 'errors') {
      $this->layout = 'error';
    }
  }
}

On Dec 11, 2:25 pm, BoSc <[EMAIL PROTECTED]> wrote:
> I found that changing the layout in error.php (errorHandler class)
> does seem to work. This doens't seem like good-practice though...
>
> Any simpler solutions?
>
> On 11 dec, 11:40, BoSc <[EMAIL PROTECTED]> wrote:
>
> > When calling a 404 error with:
>
> > $this->cakeError('error404',array(array('url'=>'/')));
>
> > How do I set the layout for the error404.thtml. It tends to use the
> > default.thtml layout, but I would like to change this!
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to