Ejemplo n.º 1
0
<?php

// 0: 表示しない, -1:全て
error_reporting(-1);
ini_set('display_errors', 'On');
require __DIR__ . '/class/AutoLoader.php';
//require __DIR__ . '/../vendor/autoload.php';
$autoLoader = new AutoLoader();
$autoLoader->setIncludePath(__DIR__ . '/class');
$autoLoader->setIncludePath(__DIR__ . '/controller');
$autoLoader->setIncludePath(__DIR__ . '/controller/base');
$autoLoader->setIncludePath(__DIR__ . '/model');
$autoLoader->setIncludePath(__DIR__ . '/model/base');
$autoLoader->setIncludePath(__DIR__ . '/entity');
$autoLoader->setIncludePath(__DIR__ . '/entity/base');
// PARAM
define('VERSION', "1.0");
// ABSOLUTE DIR
define('CONFIG_ROUTE', __DIR__ . '/conf/route.xml');
define('CONFIG_DATABASE', __DIR__ . '/conf/database.xml');
define('BUILDER_ENTITY_PATH', __DIR__ . '/entity');
define('BUILDER_MODEL_PATH', __DIR__ . '/model');
define('BUILDER_CONTROLLER_PATH', __DIR__ . '/controller');
define('TEMPLATE_DIR', __DIR__ . '/view/');
// DIR
define('LOG_DIR', __DIR__ . '/log');
/**************************************************
 * Load Config
 **************************************************/
$env = new Enviroment();
$conf = new stdClass();