It is written in the migration section, that you should use the views method $this->set instead. See http://book.cakephp.org/view/1566/View-and-Helpers Enjoy, John
On Apr 29, 7:54 am, Sergei <[email protected]> wrote: > Hi, > > just began to work with 1.3 and noticed that there is no way to set > page title ($title_for_layout) from the *view*. > > Yes it's possible to set it from controller action, but what about > static pages for Pages controller? Pages controller has only one > action 'display'. So setting title from controller doesn't "work" for > many pages! > > But.. I found the solution to set title from view: > > <? $this->viewVars['title_for_layout']="Page title" ?> > > I think that was a bad decision to remove the pageTitle manipulation > in views. Now we have to use a hack. > > Check out the new CakePHP Questions sitehttp://cakeqs.organd help others with > their CakePHP related questions. > > You received this message because you are subscribed to the Google Groups > "CakePHP" group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected] For more options, visit this group > athttp://groups.google.com/group/cake-php?hl=en Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
