We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 44c6273 commit 1dd9b75Copy full SHA for 1dd9b75
book/routing.rst
@@ -1240,7 +1240,9 @@ method::
1240
$this->generateUrl('blog_show', array('slug' => 'my-blog-post'), true);
1241
// http://www.example.com/blog/my-blog-post
1242
1243
-From a template, it looks like this:
+From a template, in Twig, simply use the ``url()`` function (which generates an absolute URL)
1244
+rather than the ``path()`` function (which generates a relative URL). In PHP, pass ``true``
1245
+to ``generateUrl()``:
1246
1247
.. configuration-block::
1248
0 commit comments