@@ -1169,11 +1169,11 @@ each separated by a colon:
1169
1169
1170
1170
For example, a ``_controller `` value of ``AppBundle:Blog:show `` means:
1171
1171
1172
- ========= ================== ==============
1173
- Bundle Controller Class Method Name
1174
- ========= ================== ==============
1175
- AppBundle ``BlogController `` ``showAction ``
1176
- ========= ================== ==============
1172
+ ============= ================== ==============
1173
+ Bundle Controller Class Method Name
1174
+ ============= ================== ==============
1175
+ `` AppBundle `` ``BlogController `` ``showAction ``
1176
+ ============= ================== ==============
1177
1177
1178
1178
The controller might look like this::
1179
1179
@@ -1471,7 +1471,7 @@ system. Take the ``blog_show`` example route from earlier::
1471
1471
// /blog/my-blog-post
1472
1472
1473
1473
To generate a URL, you need to specify the name of the route (e.g. ``blog_show ``)
1474
- and any wildcards (e.g. ``slug = my-blog-post ``) used in the path for that
1474
+ and any wildcards (e.g. ``slug `` = `` my-blog-post ``) used in the path for that
1475
1475
route. With this information, any URL can easily be generated::
1476
1476
1477
1477
class MainController extends Controller
@@ -1510,7 +1510,7 @@ In an upcoming section, you'll learn how to generate URLs from inside templates.
1510
1510
1511
1511
var url = Routing .generate (
1512
1512
' blog_show' ,
1513
- {" slug" : ' my-blog-post' }
1513
+ {' slug' : ' my-blog-post' }
1514
1514
);
1515
1515
1516
1516
For more information, see the documentation for that bundle.
@@ -1577,6 +1577,8 @@ a template helper function:
1577
1577
) ?>";
1578
1578
</script>
1579
1579
1580
+ The ``path() `` method generates relative URLs.
1581
+
1580
1582
.. index ::
1581
1583
single: Routing; Absolute URLs
1582
1584
0 commit comments