Skip to content

Commit

Permalink
minor #5357 [Form] Replace deprecated form_enctype by form_start (JML…
Browse files Browse the repository at this point in the history
…amodiere)

This PR was merged into the 2.3 branch.

Discussion
----------

[Form] Replace deprecated form_enctype by form_start

Deprecated since 2.3. See [form chapter](http://symfony.com/doc/2.3/book/forms.html#rendering-the-form)

| Q             | A
| ------------- | ---
| Doc fix?      | yes
| New docs?     | no
| Applies to    | 2.3+
| Fixed tickets | #4603

Commits
-------

f771d15 Replace deprecated form_enctype by form_start
  • Loading branch information
wouterj committed Jun 6, 2015
2 parents cea000e + f771d15 commit 5f2c583
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/form/introduction.rst
Original file line number Diff line number Diff line change
Expand Up @@ -480,11 +480,11 @@ helper functions:

.. code-block:: html+jinja

<form action="#" method="post" {{ form_enctype(form) }}>
{{ form_start(form) }}
{{ form_widget(form) }}

<input type="submit" />
</form>
{{ form_end(form) }}

.. image:: /images/book/form-simple.png
:align: center
Expand Down

0 comments on commit 5f2c583

Please sign in to comment.