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@googlegroups.com [mailto:cake-php@googlegroups.com] On Behalf Of Chuck Sent: Saturday, April 16, 2011 5:23 PM To: CakePHP Subject: Anyway to change the default.ctp to another header.ctp ? I know this might sound kinda noob. As I observed, cakephp uses view/ layout/default.ctp as the header and footer. If I click go to another page, is there anyway I could use another header instead of default.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 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+unsubscr...@googlegroups.com For more options, visit this group at http://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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php