Skip to content

Kirby 4.2.0

$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() ?>