From a45081430e12bf218be0f5df3a8f1de50c1170ab Mon Sep 17 00:00:00 2001 From: Salah MEHARGA Date: Fri, 21 Aug 2015 17:58:10 +0200 Subject: [PATCH] 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 --- best_practices/forms.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/best_practices/forms.rst b/best_practices/forms.rst index 3d47e30490b..1c0bd9ba61f 100644 --- a/best_practices/forms.rst +++ b/best_practices/forms.rst @@ -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: