Answers for "attr symfony"

1

required false , form type

$builder->add('name', null, [
    'required'   => false,
    'empty_data' => 'John Doe',
]);
Posted by: Guest on September-18-2020
0

attr symfony

{# does **not** work - the variables are not recursive #}
{{ form_widget(form, { 'attr': {'class': 'foo'} }) }}
Posted by: Guest on August-10-2021

Browse Popular Code Answers by Language