File tree 1 file changed +2
-4
lines changed
1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -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
@@ -1535,7 +1535,7 @@ Generating URLs from a Template
1535
1535
1536
1536
The most common place to generate a URL is from within a template when linking
1537
1537
between pages in your application. This is done just as before, but using
1538
- a template helper function:
1538
+ the `` path() `` function to generate a relative URL :
1539
1539
1540
1540
.. configuration-block ::
1541
1541
@@ -1577,8 +1577,6 @@ a template helper function:
1577
1577
) ?>";
1578
1578
</script>
1579
1579
1580
- The ``path() `` method generates relative URLs.
1581
-
1582
1580
.. index ::
1583
1581
single: Routing; Absolute URLs
1584
1582
You can’t perform that action at this time.
0 commit comments