How to make form_rest() not display a field with Symfony2?

前端 未结 4 474
轮回少年
轮回少年 2020-12-02 08:52

I\'ve started to use Symfony2 but I\'ve some problems. I wanted to render fields by hand but it doesn\'t work because my field yet rendered by me is displayed with the

4条回答
  •  悲哀的现实
    2020-12-02 09:25

    Another option is to explicitly mark the field as rendered:

    {% do form.contenu.setRendered %}
    

提交回复
热议问题