File tree 3 files changed +3
-4
lines changed
3 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -545,7 +545,7 @@ Form Type Options
545
545
546
546
Each :ref: `form type <form-types >` has a number of options to configure it, as
547
547
explained in the :doc: `Symfony form types reference </reference/forms/types >`.
548
- Two commonly used options options are ``required `` and ``label ``.
548
+ Two commonly used options are ``required `` and ``label ``.
549
549
550
550
The ``required `` Option
551
551
.......................
Original file line number Diff line number Diff line change @@ -200,7 +200,7 @@ Use the ``methods`` option to restrict the verbs each route should respond to:
200
200
201
201
HTML forms only support ``GET `` and ``POST `` methods. If you're calling a
202
202
route with a different method from an HTML form, add a hidden field called
203
- ``_method `` with the method to use (e.g. ``<input type="hidden" name="_method" value="PUT" /> ``).
203
+ ``_method `` with the method to use (e.g. ``<input type="hidden" name="_method" value="PUT"/> ``).
204
204
If you create your forms with :doc: `Symfony Forms </forms >` this is done
205
205
automatically for you.
206
206
@@ -1905,7 +1905,7 @@ Generating URLs in Templates
1905
1905
The Twig template language used in :doc: `Symfony templates </templating >`
1906
1906
provides some functions to generate both relative and absolute URLs:
1907
1907
1908
- .. code-block :: twig
1908
+ .. code-block :: html+ twig
1909
1909
1910
1910
{# generates relative URLs #}
1911
1911
<a href="{{ path('sign_up') }}">Sign up</a>
Original file line number Diff line number Diff line change @@ -656,7 +656,6 @@ Then you can access this metadata in your controller as follows::
656
656
657
657
use App\Entity\BlogPost;
658
658
use Symfony\Component\Workflow\Registry;
659
- use App\Entity\BlogPost;
660
659
661
660
public function myController(Registry $registry, BlogPost $post)
662
661
{
You can’t perform that action at this time.
0 commit comments