5 Star 11 Fork 4

huagelong / mycmf

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
index.php 798 Bytes
一键复制 编辑 原始数据 按行查看 历史
huagelong 提交于 2013-09-10 15:11 . 调整
<?php
ini_set("display_errors", true);
error_reporting(E_ALL);
date_default_timezone_set('Asia/Chongqing');
define('DS', DIRECTORY_SEPARATOR);
define('PS', PATH_SEPARATOR);
define('ROOT_DIR', str_replace("\\", "/", realpath(dirname(__FILE__))));
define('ROOT_LIB', ROOT_DIR.'/library');
define('CACHE_DIR', ROOT_DIR . '/data/cache');
defined('APPLICATION_PATH') || define('APPLICATION_PATH', realpath(ROOT_DIR . '/apps'));
if(defined("RUN_CLI")){
$dev = isset($argv[1]) ? $argv[1] : "production";
define('APPLICATION_ENV',$dev);
}else{
defined('APPLICATION_ENV') || define('APPLICATION_ENV', (getenv('APPLICATION_ENV') ? getenv('APPLICATION_ENV') : 'production'));
// define("APPLICATION_ENV", "production");
}
include ROOT_LIB . DS . "My" .DS."Init.php";
My_Init::getInstance()->create();
PHP
1
https://gitee.com/huagelong/mycmf.git
git@gitee.com:huagelong/mycmf.git
huagelong
mycmf
mycmf
master

搜索帮助