Reputation: 17789
How can I render a single button defined through Symfony's Forms, using Twig?
Upvotes: 3
Views: 7467
Reputation: 2191
Exactly how you render all the other form widgets e.g. if your submit button is configured like this:
$builder->add('submit', 'submit');
Then just render the "submit" form widget:
{{ form_widget(form.submit) }}
Upvotes: 13