Ray Kootstra Ray Kootstra - 2 years ago
694 1

If your not sure how to generate the CSRF token for your current object that is stated in the form, you can generate the csrf form element by using the following example:

Twig

Symfony2 generate csrf token via Form widget

{{ form_widget(form._token) }}
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download