Add custom options to symfony form
问题 1 What i want to do is add custom (option is 'angular' in this case)option to my form widget template: {%- block widget_attributes -%} id="{{ id }}" name="{{ full_name }}" {%- if angular %} ng-model="{{ full_name }}"{% endif -%} .... {%- if intention %} {{ intention }}{% endif -%} {%- if read_only %} readonly="readonly"{% endif -%} ..... {%- endblock widget_attributes -%} I wand to decide about form has it option or no in my CustomFormType. But i can't achieve it. I tried different method. Is