How to set default date for symfony html5 form widet from the controller ?
$date = date(d-m-Y); //todays date
...
->add('starts', 'date', [
'widget' => 'single_text',
'format' => 'dd-MM-yyyy',
'placeholder'=>$data,
])
...
'placeholder'=>$data does nothing. After page is loaded my form input contains dd.mm.yyyy