I think its a simple question. Its about outputting errors. This is my twig file:
{{ form_label(form.d 4条回答 遥遥无期 (楼主) 2021-02-06 15:27 Another simple solution (tested with symfony 3): {% for error in form.username.vars.errors %} {{ error.message }} {% endfor %} Replace 'username' with your form field. 0 讨论(0) 查看其它4个回答 发布评论: 提交评论 加载中... 验证码 看不清? 提交回复 热议问题
Another simple solution (tested with symfony 3):
{% for error in form.username.vars.errors %} {{ error.message }} {% endfor %}
Replace 'username' with your form field.