How to render form button in Symfony 2.3?

php, symfony, symfony-2.3, symfony-forms, twig

Solution

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) }}

Problem

How can I render a single button defined through Symfony's Forms, using Twig?

Original source