Re: How do you specify a separate/different layout for pages and errors? (CakePHP 1.2)
Or specifically, use a different layout for your pages. You can set $this->layout in the view itself too, if you don't want to copy over the PagesController. On Nov 28, 11:06 am, kiang <[EMAIL PROTECTED]> wrote: > Put the following line in the top of your controller: > var $layout = 'error'; > > --- > kiang > > On 11月28日, 上午8時22分, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > > > I want to use an error layout (error.ctp) that's different from the > > default layout I use for normal static pages (default.ctp). Is this > > possible? Where can you specify it? > > > Thanks in advance! --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Re: How do you specify a separate/different layout for pages and errors? (CakePHP 1.2)
Put the following line in the top of your controller: var $layout = 'error'; --- kiang On 11月28日, 上午8時22分, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > I want to use an error layout (error.ctp) that's different from the > default layout I use for normal static pages (default.ctp). Is this > possible? Where can you specify it? > > Thanks in advance! --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
How do you specify a separate/different layout for pages and errors? (CakePHP 1.2)
I want to use an error layout (error.ctp) that's different from the default layout I use for normal static pages (default.ctp). Is this possible? Where can you specify it? Thanks in advance! --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---