You can use your own PagesController, just copy the one that comes with cake (in the cake dir) to app/controllers/, then tune as you wish.
2007/11/30, [EMAIL PROTECTED] <[EMAIL PROTECTED]>: > > The pages controller subclasses the AppController, so you can override > its layout by setting one in the parent AppController. Of course this > may mean you need to do things with your other controllers to avoid > them also being set to the new layout. > > simon > > On Nov 30, 6:17 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > > As far as I can see, Cake's static 'pages' (in the pages controller) > > and the default error pages (empty, not_found, permission_denied) must > > use the 'default.ctp' layout. Note that neither of these use a user > > defined controller, so there's no where to define '$this->layout'. > > > > > > Is there a way to define a separate layout for the static pages and > > the default error message? > > > > > > 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 [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 -~----------~----~----~----~------~----~------~--~---
