diff --git a/book/forms.rst b/book/forms.rst index 95ffabc0656..e6f3a062851 100644 --- a/book/forms.rst +++ b/book/forms.rst @@ -127,9 +127,10 @@ which HTML form tag(s) is rendered for that field. .. versionadded:: 2.8 To denote the form type, you have to use the fully qualified class name - like - TextType::class in PHP 5.5+ or ``Symfony\Component\Form\Extension\Core\Type\TextType``. + ``TextType::class`` in PHP 5.5+ or ``Symfony\Component\Form\Extension\Core\Type\TextType``. Before Symfony 2.8, you could use an alias for each type like ``text`` or - ``date``. For more details, see the `2.8 UPGRADE Log`_. + ``date``. The old alias syntax will still work until Symfony 3.0. For more details, + see the `2.8 UPGRADE Log`_. Finally, you added a submit button with a custom label for submitting the form to the server. diff --git a/cookbook/form/create_form_type_extension.rst b/cookbook/form/create_form_type_extension.rst index 11009d5922f..df290c1e4f4 100644 --- a/cookbook/form/create_form_type_extension.rst +++ b/cookbook/form/create_form_type_extension.rst @@ -113,7 +113,7 @@ tag: - + .. code-block:: php diff --git a/reference/forms/types.rst b/reference/forms/types.rst index 6dbfb54010c..9e8426de693 100644 --- a/reference/forms/types.rst +++ b/reference/forms/types.rst @@ -65,3 +65,5 @@ Supported Field Types The following field types are natively available in Symfony: .. include:: /reference/forms/types/map.rst.inc + +.. _`2.8 UPGRADE Log`: https://github.com/symfony/symfony/blob/2.8/UPGRADE-2.8.md#form