pageTitle gotcha

When cake moved from 1.2 to 1.3, there were a few changes.  While the manual is up-to-date, the default manual that’s shown tends to be 1.2 and there is a section in the 1.2 manual that talks about the migration.  I got stuck with one of the gotchas today.  I spent 1 hour trying to find out why the title I set in $pageTitle would not print with $title_for_layout until Phally pointed it out on IRC for me.  To set the title from the controller, I’m supposed to $this->set('title_for_layout', 'My title'); doh!  Anyway, now I’m changed my bookmark to the 1.3 manual instead of 1.2

For a full list of changes, take a look at the transition guide.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s