Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 663d68c

Browse filesBrowse 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
Copy full SHA for 663d68c

File tree

Expand file treeCollapse file tree

1 file changed

+3
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+3
-1
lines changed

‎book/routing.rst

Copy file name to clipboardExpand all lines: book/routing.rst
+3-1Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.