$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 [email protected]
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
-~----------~----~----~----~------~----~------~--~---