How to bind a array with a single data to a form using the Action file in Symfony
问题 I need to add a variable to be displayed as a default in the form in the widget area, I have set a filter to select a single value according to a different name in the dropdown. i have set the selected data to a session. and from that session i have taken that data to the action file. I want to display the selected data in the form dropdown with out creating a submit event. the form is displayed below public function configure() { //the dropdown $cost_range[''] = '-- Please select --'; for (