Symfony2 form_errors

后端 未结 4 771
情书的邮戳
情书的邮戳 2021-02-06 14:51

I think its a simple question. Its about outputting errors. This is my twig file:

    
{{ form_label(form.d
4条回答
  •  挽巷
    挽巷 (楼主)
    2021-02-06 15:31

    Can't add comments yet, but I would like to update Kris Wallsmith's answer. Nowadays this block is called form_errors, so in 3rd line it should be {% block field_errors %}. It took me a while to investigate, hopefully someone benefits from that.

提交回复
热议问题