On 6/18/07, sushil <[EMAIL PROTECTED]> wrote:
>
> 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';
> -----------------------------------------------------------------
I'm hoping it's a typo in you code, but shouldn't it say:
if ($this->name == 'Pages')
--
Chris Hartjes
My motto for 2007: "Just build it, damnit!"
@TheBallpark - http://www.littlehart.net/attheballpark
@TheKeyboard - http://www.littlehart.net/atthekeyboard
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---