you can put any name you want as layout. So if you create layout
"spark" put it in the layout folder and use $this->layout = "spark".
On Jul 16, 11:12 am, phpjoy <[EMAIL PROTECTED]> wrote:
> no ideas?
> it's a bug? the normal behavior is loading a default layout?
>
> On Jul 14, 6:32 pm, phpjoy <[EMAIL PROTECTED]> wrote:
>
> > it seems like it won't load a custom layout for me.
>
> > at first, i didn't have in app/views/layouts the file "default.ctp",
> > and it loaded the default cakephp layout.
> > so i added default.ctp to my layouts directory, and it loaded it.
>
> > however i want a custom layout for my errors [from default.ctp], and i
> > wonder how to do that.
> > this is the code:
>
> > //$this->layout='wetsummer10/default';
> > //$this->layout='default/default';
> > $this->layout='spark';
> > $this->cakeError('error', array(array('name' => 'Page Was Not Found',
> > 'code'=>'404', 'message'=>'Error Message', 'base'=>$this->base)));
>
> > none worked, even if a layout IS set, it uses 'default.ctp'.
>
> > any ideas?
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---