Skip to content

Commit 663d68c

Browse files
committed
minor #3857 Added little bit information about the route name (WouterJ)
This PR was merged into the 2.3 branch. Discussion ---------- Added little bit information about the route name This PR replaces #3263 | Q | A | --- | --- | Doc fix? | no | New docs? | yes | Applies to | all | Fixed tickets | - Commits ------- 90e654b Applied comments 66d60d2 Update routing.rst
2 parents af8c20f + 90e654b commit 663d68c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

book/routing.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,9 @@ The route is simple:
7575
The path defined by the ``blog_show`` route acts like ``/blog/*`` where
7676
the wildcard is given the name ``slug``. For the URL ``/blog/my-blog-post``,
7777
the ``slug`` variable gets a value of ``my-blog-post``, which is available
78-
for you to use in your controller (keep reading).
78+
for you to use in your controller (keep reading). The ``blog_show`` is the
79+
internal name of the route, which doesn't have any meaning yet and just needs
80+
to be unique. Later, you'll use it to generate URLs.
7981

8082
The ``_controller`` parameter is a special key that tells Symfony which controller
8183
should be executed when a URL matches this route. The ``_controller`` string

0 commit comments

Comments
 (0)