Initial commit
This commit is contained in:
16
functions.php
Normal file
16
functions.php
Normal file
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
|
||||
# Imports all Composer packages
|
||||
require __DIR__ . '/vendor/autoload.php';
|
||||
|
||||
use ofc\Site;
|
||||
|
||||
# Declare a new Site object
|
||||
$site = new Site();
|
||||
|
||||
# Allow the Site object to be accessed in other files
|
||||
function site()
|
||||
{
|
||||
global $site;
|
||||
return $site;
|
||||
}
|
||||
Reference in New Issue
Block a user