$kirby->url()
Returns a system url
$kirby->url(string $type = 'index', bool $object = false): Kirby\Http\Uri|string|null
Parameters
Name | Type | Default | Description |
---|---|---|---|
$type | string |
'index'
|
|
$object | bool |
false
|
If set to true , the URL is converted to an object |
Return types
Kirby\Http\Uri
orstring
ornull
This method modifies the existing $app
object it is applied to and returns it again.