File tree Expand file tree Collapse file tree 3 files changed +3
-4
lines changed Expand file tree Collapse file tree 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
@@ -1910,7 +1910,7 @@ Generating URLs in Templates
1910
1910
The Twig template language used in :doc: `Symfony templates </templating >`
1911
1911
provides some functions to generate both relative and absolute URLs:
1912
1912
1913
- .. code-block :: twig
1913
+ .. code-block :: html+ twig
1914
1914
1915
1915
{# generates relative URLs #}
1916
1916
<a href="{{ path('sign_up') }}">Sign up</a>
Original file line number Diff line number Diff line change @@ -664,7 +664,6 @@ Then you can access this metadata in your controller as follows::
664
664
665
665
use App\Entity\BlogPost;
666
666
use Symfony\Component\Workflow\Registry;
667
- use App\Entity\BlogPost;
668
667
669
668
public function myController(Registry $registry, BlogPost $post)
670
669
{
You can’t perform that action at this time.
0 commit comments