Does that work? I recall $this->getResponse()->getTitle() always being blank from the controller (action classes). It makes sense since which view template is going to be shown isn't known until the action method has already returned (it could return success, failure, or set a different template entirely).
Which is why I suggested instead appending to the title in the view layer where it's known. Nicolas Dhomont wrote: > $this->getResponse()->setTitle($this->getResponse()->getTitle().'textToBeAppendedToFormerTitle'); > > You can put this code into : > * preExecute() : your title will be modified for every action inside > the module > * executeMyAction() : title modified only for myAction > > I'm not sure it solves your controller issue. > > :-) > > Nicolas > > > Nicolas Perriault a écrit : >> 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 -~----------~----~----~----~------~----~------~--~---