website/modules/snippet/snippets/docs/API/PHP/VV/root/3.php
vlw e5a0a8169c Initial code commit (#1)
First (rushed 😦) release of the Vegvisir website.

Reviewed-on: https://codeberg.org/vegvisir/website/pulls/1
Co-authored-by: vlw <victor@vlw.se>
Co-committed-by: vlw <victor@vlw.se>
2024-08-30 10:01:58 +00:00

11 lines
No EOL
218 B
PHP

// File: /var/www/my-website/public/index.php
<?php
use MyWebsite\Src\MyClass;
// Leading slash is optional!
require_once VV::root("/src/MyClass.php");
?>
<p>A normal Vegvisir page whch has access to MyClass</p>