Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个从控制器内部生成的表单。 然后在树枝文件中,我需要向字段(textarea)添加一个属性(占位符)。 在树枝文件中执行此操作的最佳方法是什么?
{{ form_row(form.yourField, { 'attr':{'placeholder':'sample value'} }) }}