skip to Main Content

Php – ChoiceType of Forms

I have a Symfony app with this form: $builder->add('test', ChoiceType::class, [ 'choices' => ['a' => 1, 'b' => 2], 'multiple' => false, 'mapped' => false, 'expanded' => true, ]); I display it with {{ form_widget(form.test) }} and I get :…

VIEW QUESTION
Back To Top
Search