更新时间:2023-11-19 17:23:04
Symfony表单仅包含 表单字段.您想要的任何其他内容都必须由模板添加.
Symfony forms contain only form fields. Any additional content you want has to be added by the template.
这意味着您必须逐字段输出表单.例如,您的表单可能如下所示:
This means you'll have to output the form field-by-field. Your form, for example might look like this:
{{ form_start(form) }}
{{ form_row(form.stuffName) }}
<p>Your Text</p>
{{ form_row(form.stuffDescription) }}
{{ form_end(form) }}
For more more information on how you can customize form rendering, please see the forms chapter in the Symfony documentation.