how to set the element id for a form element

{{ form_widget(form.annonce.trocAnnonce,{ 'id' :'troc_editor','attr': {'row': '5'} }) }}


well, in symfony2.1 ,we can set id by 'attr'.

评论

热门博文