Skip to content

Kirby 3.9.8

$kirby->url()

Returns a system url

$kirby->url(string $type = 'index', bool $object = false): string|Kirby\Http\Uri|null

Parameters

Name Type Default Description
$type string 'index'
$object bool false If set to true, the URL is converted to an object

Return type

string|Kirby\Http\Uri|null

Parent class

Kirby\Cms\App