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 cake-php@googlegroups.com
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