$kirby->root('snippets')
Returns the root of the snippets folder.
Example
<?= $kirby->root('snippets') ?>
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.
<?php
include 'kirby/bootstrap.php';
$kirby = new Kirby([
'roots' => [
'snippets' => '/absolute/path/to/custom/root',
],
]);
echo $kirby->render();