symfony2 CSRF invalid

前端 未结 3 503
深忆病人
深忆病人 2020-12-08 08:14

Okay, so today I updated my database with new information from our \'live\' database... And since then I\'ve been having issues on one of my forms. If you need any code le

3条回答
  •  庸人自扰
    2020-12-08 08:21

    There is no problem using {{ form_widget(form) }} to build your custom form. All you have to do is add the _token like this: {{ form_widget(form._token) }}

提交回复
热议问题