Skip to content

Commit 25ac5fe

Browse files
committed
[#6218] Blend new sentence into previous paragraph
1 parent 443d61e commit 25ac5fe

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

book/routing.rst

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1471,7 +1471,7 @@ system. Take the ``blog_show`` example route from earlier::
14711471
// /blog/my-blog-post
14721472

14731473
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
14751475
route. 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

15361536
The most common place to generate a URL is from within a template when linking
15371537
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:
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

0 commit comments

Comments
 (0)