Pass in the secret as the last argument of the form constructor. I believe if it is present it will generate the field in the widgetSchema.
xhe wrote: > Just have a confused question. > > I have created a form, but how can I add csrf hidden field? The form > is not automatically generated, but manually generated. I checked the > code of propel auto-generated form, they always have a hidden csrf > token field, but my manually created form does not have that hidden > field. > > Can anyone tell me how to add that field into manually created form? > > Thanks > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
