@sam Isnt view file meant for simply displaying webpages, rather than setting variables?
I think controller is the right place for setting title for a page but I may be wrong any one used custom AppController had problem with setting title variable? thanks, On Jun 9, 4:07 pm, Sam Sherlock <[email protected]> wrote: > How about setting the title in the view? > > - S > > On 9 June 2011 15:28, mandar <[email protected]> wrote: > > > > > > > > > I have already added <title><?php echo $*title_for_layout;* ?></title> in > > my layout file. > > > I guess my custom AppContoller class which (which is in root folder) is > > overwritiing title variable which im setting in Sites Controller > > > How do i stop AppController from overwriting title variable?? > > > Any ideas? > > > thanks, > > > -- > > Our newest site for the community: CakePHP Video Tutorials > >http://tv.cakephp.org > > Check out the new CakePHP Questions sitehttp://ask.cakephp.organd help > > others with their CakePHP related questions. > > > To unsubscribe from this group, send email to > > [email protected] For more options, visit this group > > athttp://groups.google.com/group/cake-php -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/cake-php
