url()
Builds an absolute URL for a given path
Parameters
Name | Type | Default |
---|---|---|
$path | string |null |
null |
$options | array |string |null |
null |
Return type
string
Examples
Generate a link to a page, e.g. search
Generate a link to a page with query string:
Generate a link to a page with params: