Example #1
0
<?php

//set_include_path(__DIR__ . '/app');
spl_autoload_register(function ($class_name) {
    $class_name = str_replace(array("/", "\\"), DIRECTORY_SEPARATOR, $class_name);
    include $class_name . '.php';
});
use app\controller as ctrl;
//require_once("/var/www/mdl/app/controller/Controller.php");
ctrl\Controller::run();