Thursday, June 30, 2016

Selected value in Twig

The resolution was to force conversion of int to string:
{{ form_widget(form.item1, {value: myvariable ~ ""}) }}
Check this out :

http://stackoverflow.com/questions/25326400/selected-value-in-twig

No comments:

Post a Comment