thanks! Chuck
On Apr 17, 4:13 am, "Krissy Masters" <[email protected]> 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: [email protected] [mailto:[email protected]] 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 > [email protected] 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 [email protected] For more options, visit this group at http://groups.google.com/group/cake-php
