Skip to content

Kirby 3.8.4

$kirby->root('kirby')

Returns the root of the Kirby core folder

Example

<?= $kirby->root('kirby') ?>

Custom setup

If you want to overwrite the root you can do this in your index.php by passing a custom roots setup to the Kirby constructor.

/index.php
<?php

include 'kirby/bootstrap.php';

$kirby = new Kirby([
    'roots' => [
        'kirby' => '/absolute/path/to/custom/root',
    ],
]);

echo $kirby->render();