Bootstrap.php
744 Bytes
<?php
/**
* Created by PhpStorm.
* User: Ziy
* Date: 14/8/31
* Time: 下午2:59
*/
###########################################################################################
defined('Q_APPLICATION_ENV') || define('Q_APPLICATION_ENV', (ini_get('qin.environment') ? ini_get('qin.environment') : 'release'));
###########################################################################################
require_once dirname(__FILE__)."/../../../QF1.1/Framework/Q/Autoloader.php";
$config = new Yaf_Config_Ini(__DIR__ . '/config.ini', Q_APPLICATION_ENV);
$pathList = array(
$config->brightKnight,
$config->framework
);
defined('QIN_CONFIG') || define('QIN_CONFIG', $config->config);
set_include_path(implode(PATH_SEPARATOR, $pathList));