File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Filter options
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Original file line number Diff line number Diff line change @@ -1201,7 +1201,7 @@ By default, the router will generate relative URLs (e.g. ``/blog``). To generate
1201
1201
an absolute URL, simply pass ``true `` to the third argument of the ``generate() ``
1202
1202
method::
1203
1203
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);
1205
1205
// http://www.example.com/blog/my-blog-post
1206
1206
1207
1207
.. note ::
@@ -1212,7 +1212,7 @@ method::
1212
1212
scripts run from the command line, you'll need to manually set the desired
1213
1213
host on the ``RequestContext `` object::
1214
1214
1215
- $this-get('router')->getContext()->setHost('www.example.com');
1215
+ $this-> get('router')->getContext()->setHost('www.example.com');
1216
1216
1217
1217
.. index ::
1218
1218
single: Routing; Generating URLs in a template
You can’t perform that action at this time.
0 commit comments