Not from the controller. But you can make this string you want to append available to the view from the controller, then in the view, print out a <title> tag which contains the title from view.yml and your extra string instead of using the helper method for printing a title.
Ex: <title><?php echo $this->getContext()->getResponse()->getTitle(); ?> <?php echo isset($title_extra) ? ' - ' . $title_extra : ''; ?></title> Nicolas Perriault wrote: > Nicolas Dhomont wrote: > > >> public function executeCreate() >> { >> * $this->getResponse()->setTitle('blah'); >> * return $this->forward('content', 'edit'); >> } >> > > BTW is there a simple way to append a string to an existing title > (defined in the view.yml file) in the response ? My problem is that in > the controller the sfResponse::getTitle method always returns an empty > string... :( > > ++ > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~----------~----~----~----~------~----~------~--~---