Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 5f2c583

Browse files
committed
minor symfony#5357 [Form] Replace deprecated form_enctype by form_start (JMLamodiere)
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 | symfony#4603 Commits ------- f771d15 Replace deprecated form_enctype by form_start
2 parents cea000e + f771d15 commit 5f2c583

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

components/form/introduction.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -480,11 +480,11 @@ helper functions:
480480

481481
.. code-block:: html+jinja
482482

483-
<form action="#" method="post" {{ form_enctype(form) }}>
483+
{{ form_start(form) }}
484484
{{ form_widget(form) }}
485485

486486
<input type="submit" />
487-
</form>
487+
{{ form_end(form) }}
488488

489489
.. image:: /images/book/form-simple.png
490490
:align: center

0 commit comments

Comments
 (0)