Skip to content

Kirby 4.4.1

$page->root()

Returns the absolute root to the page directory No matter if it exists or not.

$page->root(): string

Return type

string

Parent class

Kirby\Cms\Page

Example

<?= $page->root() ?>