cake-php@googlegroups.com
[Top] [All Lists]

Re: Anyway to change the default.ctp to another header.ctp ?

Subject: Re: Anyway to change the default.ctp to another header.ctp ?
From: Chuck
Date: Sun, 17 Apr 2011 01:36:02 -0700 PDT
thanks!

Chuck

On Apr 17, 4:13 am, "Krissy Masters" <naked.cake.ba...@xxxxxxxxx>
wrote:
> You could have an if or switch block in the layout to echo an element
>
> if($logged_in){
>
> echo $this->Element('private_header, array());
>
> //1 element header
>
> } else {
>
> //other header element
> echo $this->Element('public_header, array());
>
> }
>
> K
>
>
>
>
>
>
>
> -----Original Message-----
> From: cake-php@xxxxxxxxxxxxxxxx [mailto:cake-php@xxxxxxxxxxxxxxxx] On Behalf
>
> Of Chuck
> Sent: Saturday, April 16, 2011 5:23 PM
> To: CakePHP
> Subject: Anyway to change thedefault.ctpto another header.ctp ?
>
> I know this might sound kinda noob.  As I observed, cakephp uses view/
> layout/default.ctpas the header and footer.  If I click go to another
> page, is there anyway I could use another header instead ofdefault.ctp? For 
> example, say I want to change the header completely
> after logging in. Anyone point me to the right direction? thanks.
>
> Chuck.
>
> --
> Our newest site for the community: CakePHP Video 
> Tutorialshttp://tv.cakephp.org
> Check out the new CakePHP Questions sitehttp://ask.cakephp.organd help
> others with their CakePHP related questions.
>
> To unsubscribe from this group, send email to
> cake-php+unsubscribe@xxxxxxxxxxxxxxxx For more options, visit this group 
> athttp://groups.google.com/group/cake-php

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscribe@xxxxxxxxxxxxxxxx For more options, visit this group at 
http://groups.google.com/group/cake-php

<Prev in Thread] Current Thread [Next in Thread>