$roots->index()

Returns the document root of the website

  • return (string)

Example

<?php echo kirby()->roots()->index() ?>