Thursday, September 14, 2006

Need Different Title For Page? It's simple!

Just add this code in <head> your views:

<h2><?php echo $this->pageTitle="Page title goes here"?></h2>
But remember, in cakephp 1.2.xx you can achieve this by

$this->set(‘title’, ‘Foo bar’);
Of couse, you must setup this variable (pageTitle) in your controller ;-)


Post a Comment

Subscribe to Post Comments [Atom]

<< Home