Sorry, Lukas is correct

Sent from my Nexus One
On Jan 3, 2011 12:08 PM, "Bulat Shakirzyanov" <[email protected]> wrote:
> You have to return $this->redirect ... the method generates a response
> object, which needs to be returned
>
> Sent from my Nexus One
> On Jan 3, 2011 12:03 PM, "rouffj" <[email protected]> wrote:
>> Hi everyone,
>>
>> I just started to develop with symfony2 and i had a little issue with
>> the redirect method. When i use it i'm not redirected to the new URL.
>> For instance when i put in an action this line :
>>
>> $this->redirect($this->generateUrl('hello', array('name' =>
>> 'Lucas')));
>>
>> There is no redirection. When i try to put an echo in front of this
>> line i have the message "Redirecting to <a>URL</a>". When i build the
>> response myself with Location header and the 200 status code, it
>> works.
>>
>> Anyone have any idea why this issue occured ?
>>
>> Symfony2 Version used : master (763ef35d0e9c627dbf22).
>>
>> Thanks for your responses
>>
>> --
>> If you want to report a vulnerability issue on symfony, please send it to
> security at symfony-project.com
>>
>> You received this message because you are subscribed to the Google
>> Groups "symfony developers" group.
>> To post to this group, send email to [email protected]
>> To unsubscribe from this group, send email to
>> [email protected]<symfony-devs%[email protected]>
<symfony-devs%[email protected]<symfony-devs%[email protected]>
>
>> For more options, visit this group at
>> http://groups.google.com/group/symfony-devs?hl=en

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

You received this message because you are subscribed to the Google
Groups "symfony developers" 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-devs?hl=en

Reply via email to