Skip to content

Kirby 5.0.4

$kirby->root()

Returns a system root

$kirby->root(string $type = 'index'): string|null

Parameters

Name Type Default
$type string 'index'

Return types

stringornull

This method modifies the existing $app object it is applied to and returns it again.

Parent class

Kirby\Cms\App