It's that simple huh?
Why is this sort of stuff missing in the manual :'(
I hate bothering the google group for this kind of stuff.
On 11 dec, 17:41, djiize <[EMAIL PROTECTED]> wrote:
> did you try:
> <?php $this->layout = 'error'; ?>
> in your error404.thtml ?
>
> On 11 déc, 15:37, grigri <[EMAIL PROTECTED]> wrote:
>
> > 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
-~----------~----~----~----~------~----~------~--~---