Exactly, you need to use separate files for different layouts. I have a
default.ctp and a game.ctp for logged in and not logged in users. To switch
between the two, in your controller, use $this->layout('layoutname');.In the name of Life, Liberty, and the pursuit of my sanity. Siebren Bakker(Aevum Decessus) On Mon, Jun 23, 2008 at 09:06, dr. Hannibal Lecter <[EMAIL PROTECTED]> wrote: > > You need to use separate files.. For example, default.ctp for frontent > and backend.ctp for backend. > > On Jun 23, 9:34 am, kaushik <[EMAIL PROTECTED]> wrote: > > I want to use different template structure for frontend and admin > > section. how i have to code in default.cpt........... i have to use > > two different files or it have to arrange in same file? > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "CakePHP" 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 -~----------~----~----~----~------~----~------~--~---
