Skip to content

Commit

Permalink
minor #5649 [RFR] Fixing typo in Symfony version for ButtonType (salahm)
Browse files Browse the repository at this point in the history
This PR was merged into the 2.3 branch.

Discussion
----------

[RFR] Fixing typo in Symfony version for ButtonType

ButtonType was introduced in Symfony 2.3.

See : http://symfony.com/blog/new-in-symfony-2-3-buttons-support-in-forms

Commits
-------

a450814 Fixing typo in Symfony version for ButtonType
  • Loading branch information
xabbuh committed Aug 22, 2015
2 parents d35fd8f + a450814 commit 74ad0eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion best_practices/forms.rst
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ makes them easier to re-use later.

Add buttons in the templates, not in the form classes or the controllers.

Since Symfony 2.5, you can add buttons as fields on your form. This is a nice
Since Symfony 2.3, you can add buttons as fields on your form. This is a nice
way to simplify the template that renders your form. But if you add the buttons
directly in your form class, this would effectively limit the scope of that form:

Expand Down

0 comments on commit 74ad0eb

Please sign in to comment.