8000 More 2.8 form updates by weaverryan · Pull Request #5909 · symfony/symfony-docs · GitHub
[go: up one dir, main page]

Skip to content

More 2.8 form updates #5909

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Nov 30, 2015
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8000
Prev Previous commit
several other tweaks
  • Loading branch information
weaverryan committed Nov 30, 2015
commit d1314492ce84e2aad922599a8a942005c2fc79e0
5 changes: 3 additions & 2 deletions book/forms.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion cookbook/form/create_form_type_extension.rst
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ tag:
<service id="app.image_type_extension"
class="AppBundle\Form\Extension\ImageTypeExtension"
>
<tag name="form.type_extension" extended_type="Symfony\Component\Form\Extension\Core\Type\FileType" />
<tag name="form.type_extension" extended-type="Symfony\Component\Form\Extension\Core\Type\FileType" />
</service>

.. code-block:: php
Expand Down
2 changes: 2 additions & 0 deletions reference/forms/types.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
0