예제 #1
0
<?php

define("BASE_DIR", __DIR__);
define("CONFIG_DIR", __DIR__ . "/config");
define("ENGINE_DIR", __DIR__ . "/engine");
define("TEMPLATES_DIR", __DIR__ . "/templates");
require_once __DIR__ . "/engine/autoloader.php";
Application\Application::run();
Application\Application::run();
$a;
$d;
$ff;
예제 #2
0
파일: index.php 프로젝트: angelk/tmp-bships
<?php

error_reporting(-1);
session_start();
spl_autoload_register(function ($name) {
    $namespaceToPath = str_replace('\\', DIRECTORY_SEPARATOR, $name);
    $filePath = __DIR__ . DIRECTORY_SEPARATOR . 'src' . DIRECTORY_SEPARATOR . $namespaceToPath . '.php';
    if (is_file($filePath)) {
        require $filePath;
        return true;
    }
    return false;
});
$app = new \Application\Application();
$app->run();