You are not limited to title_for_layout either.  You can set any view
variable and use that.

-Mark

On Oct 11, 1:30 pm, mmalca <m...@nahtigal.com> wrote:
> There was an elegant way to set page title anywhere in view using
> CakePHP 1.2 - with $this->pageTitle = 'new title';  This has been
> removed in cakephp 1.3 in favor of $this->set('title_for_layout',
> 'page title');
>
> Is there no simple way left to set page title elsewhere in view? Can
> it be changed/set only in controller?
>
> Here's an example. I want to change page title in my theme (in a view
> without overriding default layout). This was possible by setting $this-
>
>
>
> >pageTitle. So: how can a custom view theme change page title?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
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?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to