File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Expand file tree Collapse file tree 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::
14711471 // /blog/my-blog-post
14721472
14731473To 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
14751475route. With this information, any URL can easily be generated::
14761476
14771477 class MainController extends Controller
@@ -1535,7 +1535,7 @@ Generating URLs from a Template
15351535
15361536The most common place to generate a URL is from within a template when linking
15371537between 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 :
15391539
15401540.. configuration-block ::
15411541
@@ -1577,8 +1577,6 @@ a template helper function:
15771577 ) ?>";
15781578 </script>
15791579
1580- The ``path() `` method generates relative URLs.
1581-
15821580.. index ::
15831581 single: Routing; Absolute URLs
15841582
You can’t perform that action at this time.
0 commit comments