File tree Expand file tree Collapse file tree 1 file changed +3
-8
lines changed Expand file tree Collapse file tree 1 file changed +3
-8
lines changed Original file line number Diff line number Diff line change @@ -68,21 +68,16 @@ The route is simple:
68
68
69
69
return $collection;
70
70
71
- .. note ::
72
-
73
- When defining routes, the key (e.g. ``blog_show ``) is meaningless.
74
- Just be sure that it's unique so no other lines override it. In most cases, a
75
- vendorname_shortbundlename_controllername_actionname pattern
76
- (e.g. ``acme_blog_show ``) is appropriate.
77
-
78
71
.. versionadded :: 2.2
79
72
The ``path `` option was introduced in Symfony 2.2, ``pattern `` is used
80
73
in older versions.
81
74
82
75
The path defined by the ``blog_show `` route acts like ``/blog/* `` where
83
76
the wildcard is given the name ``slug ``. For the URL ``/blog/my-blog-post ``,
84
77
the ``slug `` variable gets a value of ``my-blog-post ``, which is available
85
- 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.
86
81
87
82
The ``_controller `` parameter is a special key that tells Symfony which controller
88
83
should be executed when a URL matches this route. The ``_controller `` string
You can’t perform that action at this time.
0 commit comments