Hey,

I didn't test it, but using forward instead of redirect, perhaps you can
modify the sfWebRequest object and it will get passed around to the
forwarded action, no ?

Before Printing, Think about Your Environmental Responsibility!
Avant d'Imprimer, Pensez à Votre Responsabilitée Environnementale!


On Sun, Nov 28, 2010 at 7:45 PM, oscar balladares <[email protected]>wrote:

> Hi.
>
> Yes, it is possible, but currently I only now the GET method.
>
> Look for this snippet:
>
> if ($this->form->isValid()){
>   
> $this->redirect('contact/thankyou?'.http_build_query($this->form->getValues()));}
>
>
>
> On this Resource...
>
> http://www.symfony-project.org/forms/1_4/en/02-Form-Validation
>
> It is the "Forms in action" From Symfony docs.
>
> The .http_build_query will pass the data to another action, if the form is
> valid (for this example)
> But I would love to know a POST implementation example.
>
> If you get it first than I, please send me a short mail [?]
>
> 2010/11/24 Marcelo <[email protected]>
>
> Is it possible to pass variables through actions ?
>>
>> Because I use some vars in new action, but if the form is invalid it
>> will stop on create action to fix the erros and then I get the
>> undefined variables
>>
>> ps: The values of these variables in new action is requested by url
>> (new/someid/3) which by the way is hard coded.
>>
>> Or is there another (correct) way to do that ?
>>
>> Thanks!
>>
>> --
>> 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 users" group.
>> To post to this group, send email to [email protected]
>> To unsubscribe from this group, send email to
>> [email protected]<symfony-users%[email protected]>
>> For more options, visit this group at
>> http://groups.google.com/group/symfony-users?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 users" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]<symfony-users%[email protected]>
> For more options, visit this group at
> http://groups.google.com/group/symfony-users?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 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

<<360.gif>>

Reply via email to