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

Skip to content

Commit 5e8d015

Browse files
committed
feature #6783 Routing: add explanation for the "_fragment" parameter (alexislefebvre)
This PR was squashed before being merged into the master branch (closes #6783). Discussion ---------- Routing: add explanation for the "_fragment" parameter Add explanation about this PR: symfony/symfony#12979 Presented in http://symfony.com/blog/new-in-symfony-3-2-routing-improvements I copy-pasted the start of the announcement as the explanation since I couldn't have found a better explanation. I hope that won't be a problem. Commits ------- d657abd Routing: add explanation for the "_fragment" parameter
2 parents 463f9db + d657abd commit 5e8d015

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

routing.rst

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -470,7 +470,7 @@ Special Routing Parameters
470470
~~~~~~~~~~~~~~~~~~~~~~~~~~
471471

472472
As you've seen, each routing parameter or default value is eventually available
473-
as an argument in the controller method. Additionally, there are three parameters
473+
as an argument in the controller method. Additionally, there are four parameters
474474
that are special: each adds a unique piece of functionality inside your application:
475475

476476
``_controller``
@@ -480,6 +480,14 @@ that are special: each adds a unique piece of functionality inside your applicat
480480
``_format``
481481
Used to set the request format (:ref:`read more <routing-format-param>`).
482482

483+
``_fragment``
484+
485+
.. versionadded:: 3.2
486+
The ``_fragment`` parameter was introduced in Symfony 3.2.
487+
488+
Used to set the fragment identifier, the optional last part of a URL that
489+
starts with a ``#`` character and is used to identify a portion of a document.
490+
483491
``_locale``
484492
Used to set the locale on the request (:ref:`read more <translation-locale-url>`).
485493

0 commit comments

Comments
 (0)