Esempio n. 1
0
<?php

session_start();
if (is_readable('library/configuration.php')) {
    require 'library/configuration.php';
} else {
    die("There's no configuration file.");
}
require 'library/utilities/helpers.php';
use Library\Utilities\Helpers;
function autoLoad($className)
{
    $file = Helpers::preparePath(ROOT . $className . '.php');
    if (is_readable($file)) {
        require $file;
    }
}
spl_autoload_register('autoLoad');
\Library\Bootstrap::getRoutes($routesOptions);
\Library\Bootstrap::init();