我想在我的editForm textarea中显示一个特定的内容,所以我尝试像文本字段但它不起作用:
{{ form_widget(edit_form.description, { 'attr': {'value': 'content'} }) }} {{ form_errors(edit_form.description) }}
我怎么能在TWIG中做到这一点?
这应该根据the doc工作。
{{ form_widget(edit_form.description, { 'value': 'content'}) }} {{ form_errors(edit_form.description) }}
但我从未测试过它。