Home » PHP » Twig » pass custom variable to twig form template

pass custom variable to twig form template

{{ form_widget(form.name, { 'attr': {'value': name} }) }}

Check Also

Top Twig Template Interview And Answer Part 4

1. How we can append text in title with separator in twig template? {% do …

Leave a Reply

Your email address will not be published. Required fields are marked *