Skip to content

Kirby 4.1.2

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