Пример #1
0
<?php

define('DS', DIRECTORY_SEPARATOR);
define('ROOT', realpath(dirname(__FILE__)) . DS);
define('URL', "http://localhost/ACPOO/UIERP/");
require_once "Config/Autoload.php";
Config\Autoload::run();
require_once "Views/app.php";
Config\Enrutador::run(new Config\Request());
Пример #2
0
<?php

error_reporting(E_ERROR | E_PARSE);
session_start();
define("___NEWBIE___", "aplication");
define('DS', DIRECTORY_SEPARATOR);
define('ROOT', realpath(dirname(__FILE__)) . DS);
require_once '../config/Autoload.php';
require_once '../config/Config.php';
require_once '../app/Tools/Helpers.php';
Config\Autoload::getLoader();
Config\Router::Run(new Config\Request());