🎉 If you are still on v2, we offer attractive prices for all owners of a Kirby 2 license to upgrade to v3.
Upgrade your v2 license now
.
$roots->index()
Returns the document root of the website
return
(string)
Example
<?= kirby()->roots()->index() ?>
↑
Cheat Sheet overview
←
$roots->fields()
→
$roots->kirby()
↓
Back to Cheat Sheet section
Top