Guillermo Gutiérrez
Guillermo Gutiérrez

Reputation: 17789

How to render form button in Symfony 2.3?

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

Upvotes: 3

Views: 7467

Answers (1)

m0c
m0c

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

Related Questions