I cannot set title_for_layout on the default PagesController that comes by default with cakephp 1.3.
I am using the following code on the display function:
$this->set('title_for_layout','some title');
What am I doing wrong ???
I cannot set title_for_layout on the default PagesController that comes by default with cakephp 1.3.
I am using the following code on the display function:
$this->set('title_for_layout','some title');
What am I doing wrong ???
In your controller, the corresponding value is $this->pageTitle
.
UPDATE
Oops, as noted in the comments, this is the 1.2 solution. 1.3 possibilities (after doing some research) include:
$title_for_layout
is being echoed in the layout$this->set()
code in the view rather than in the controller