Bootstrap.php 1.32 KB
<?php
defined('APPLICATION_PATH') || define('APPLICATION_PATH', realpath(dirname(__FILE__)));
###########################################################################################
defined('Q_APPLICATION_ENV') || define('Q_APPLICATION_ENV', (ini_get('qin.environment') ? ini_get('qin.environment') : 'release'));
defined('APPLICATION_ENV') || define('APPLICATION_ENV', Q_APPLICATION_ENV);
###########################################################################################
set_include_path(implode(PATH_SEPARATOR, array(get_include_path(), ini_get('qin.path'), realpath(dirname(dirname(__FILE__))))));
require_once 'Zend/Loader/Autoloader.php';
Zend_Loader_Autoloader::getInstance()->setFallbackAutoloader(true);
$qinConfig = ini_get('qin.config');
if (empty($qinConfig)) {
    switch (APPLICATION_ENV) {
        case Q_Core_Consts::Q_APPLICATION_ENV_LOCALING :
            $qinConfig = '/Data/code/QF1.1/Framework/Config';
            break;
        case Q_Core_Consts::Q_APPLICATION_ENV_TESTING :
            $qinConfig = '/Data/code/QF1.1/Framework/Config';
            break;
        case Q_Core_Consts::Q_APPLICATION_ENV_RELEASE :
            $qinConfig = '/Data/code/QF1.1/Framework/Config';
            break;
    }
}
 $qinConfig="/Data/code/yohomarket/yohomarket.config/core";
defined('QIN_CONFIG') || define('QIN_CONFIG', $qinConfig);