This forum is in READ-ONLY mode.
You can look around, but if you want to ask a new question, please use the new forum.
Home » symfony projects » askeet » Day 7 $this->getResponse()->setTitle($title) puts out array
Day 7 $this->getResponse()->setTitle($title) puts out array [message #6703] Fri, 26 May 2006 18:40 Go to next message
ToZa  is currently offline ToZa
Messages: 8
Registered: May 2006
Junior Member

I Set $this->getResponse()->setTitle($title)
in the view.yml.

And title of the page now ist "Array" ??

Any suggestion what i can do ??

Thanks Torsten
Re: Day 7 $this->getResponse()->setTitle($title) puts out array [message #7100 is a reply to message #6703 ] Mon, 05 June 2006 18:17 Go to previous messageGo to next message
francois  is currently offline francois
Messages: 1636
Registered: October 2005
Faithful Member
This method is to be used from an action, not from a yaml configuration file. Please read the related chapter. configuration.html
Re: Day 7 $this->getResponse()->setTitle($title) puts out array [message #99361 is a reply to message #7100 ] Wed, 19 May 2010 10:57 Go to previous messageGo to next message
vampirus87  is currently offline vampirus87
Messages: 3
Registered: May 2010
Location: Kuala Lumpur
Junior Member
in which files and position do I include the this->getResponse()->setTitle($title) then. Do help. Thank u.

Live Life CooL...
Re: Day 7 $this->getResponse()->setTitle($title) puts out array [message #99372 is a reply to message #6703 ] Wed, 19 May 2010 11:56 Go to previous message
halfer  is currently offline halfer
Messages: 9535
Registered: January 2006
Location: West Midlands, UK
Faithful Member
This post is nearly 4 years old, so bear that in mind - unless you are working on a legacy project containing symfony 1.0, it is best to start with symfony 1.3 or 1.4 these days.

Any reference to $this must go in a class, and in this case, the method getResponse() must go in an action. In your case it is probably actions.class.php for the module in question.

Remember Palestine
Previous Topic:Askeet Day 6 Tutorial myLoginValidator not found in
Next Topic:[Day 10] "invalid byte sequence" pgsql doctrine error.
Goto Forum:

powered by FUDforum - copyright ©2001-2004 FUD Forum Bulletin Board Software