심포니 2에서 렌더링 된 필드의 이름 속성을 설정하는 방법은 무엇입니까?심포니 2 폼 필드의 이름 속성 설정
예상 출력 : 현장을
{{ form_widget(form.test, { 'attr': {'name': 'test'} }) }}
확실히 작동하지 않습니다 이런 식으로 렌더링
<input type="text" name="test" value="test" />
.
출력
<input type="text" name="form[test]" value="test" />.
이름 속성이나 ID가 동적으로 속성을 설정할 수있는 방법이 있나요 아직? 고맙습니다.
참조 http://stackoverflow.com/questions/8416783/symfony2-form-component-creating-fields-without-the-forms-name-in-the-name-att – max