Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 61c464e

Browse files
committed
[#2854] Fixing small bug thanks to @xabbuh
1 parent e99defc commit 61c464e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

book/routing.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1201,7 +1201,7 @@ By default, the router will generate relative URLs (e.g. ``/blog``). To generate
12011201
an absolute URL, simply pass ``true`` to the third argument of the ``generate()``
12021202
method::
12031203

1204-
$this-get('router')->generate('blog_show', array('slug' => 'my-blog-post'), true);
1204+
$this->get('router')->generate('blog_show', array('slug' => 'my-blog-post'), true);
12051205
// http://www.example.com/blog/my-blog-post
12061206

12071207
.. note::
@@ -1212,7 +1212,7 @@ method::
12121212
scripts run from the command line, you'll need to manually set the desired
12131213
host on the ``RequestContext`` object::
12141214

1215-
$this-get('router')->getContext()->setHost('www.example.com');
1215+
$this->get('router')->getContext()->setHost('www.example.com');
12161216

12171217
.. index::
12181218
single: Routing; Generating URLs in a template

0 commit comments

Comments
 (0)