示例#1
0
 *
 */
/**
 * Starts the $_SESSION variable, usable alot at this project as
 * flah() messages, user control, etc
 */
session_start();
/**
 * The next lines describes minimal stuff required on index of project
 * Don't change this block unless you REALLY KNOW what you are doing
 */
require 'definitions.php';
require 'lib' . DS . 'designetecnologia' . DS . 'main' . DS . 'Autoload.php';
use designetecnologia\main\Router;
$autoLoad = new Autoload();
$autoLoad->setPath(ROOT);
$autoLoad->setExt('php');
spl_autoload_register(array($autoLoad, 'loadApp'));
// Load files from app
spl_autoload_register(array($autoLoad, 'loadModules'));
// Load files from app/modules directly
spl_autoload_register(array($autoLoad, 'loadCore'));
// Load files from lib folder
spl_autoload_register(array($autoLoad, 'load'));
// Load files from root folder
/**
 * Do not change the next lines
 * they are necessary to interpreting routes and render the results of requests
 * Instantiating designetecnologia\main\Router for handling URIs
 */
$router = Router::getInstance();