Answer the question
In order to leave comments, you need to log in
How to add data to select from controller in Symfony?
I create an empty select using a builder:
$builder->add('myselect', ChoiceType::class, array(
'label' => 'My select',
'required' => false
))
How can I add data (choices) to it from the controller, i.e. add option?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question