Hi All, I have again come across a problem. I have static page (rendered by pages controller) - loginbox and I have a layout for it.
While running the application, if a session is set, then the app will run else a login box is to be displayed. For the login box, there is different layout (loginbox.thtml). The code to change layout is: ------------------------------------------------------------------ if($this->name ='Pages') { if($this->action = 'loginbox') { $this->layout = 'loginbox'; } } else $this->layout = 'default'; ----------------------------------------------------------------- This works fine. The problem is, the layout doesn't change back to the default layout if there is an active session. Can you guys help me on this? Regards, Sushil --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---