5 Star 8 Fork 1

green/RedisManager

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
init.php 966 Bytes
一键复制 编辑 原始数据 按行查看 历史
green 提交于 2019-11-25 18:50 +08:00 . first init
<?php
header("Content-Type:text/html; charset=UTF-8");
if (!defined('__DIR__')) define('__DIR__', dirname(__FILE__));
if (!defined('DS')) define('DS', DIRECTORY_SEPARATOR);
require_once 'Gc.php';//加载全局变量文件
require_once 'core/main/Initializer.php';
/**
* 相当于__autoload加载方式
* 但是当第三方如Flex调用时__autoload无法通过其ZendFrameWork加载模式;
* 需要通过spl_autoload_register的方式进行加载,方能在调用的时候进行加载
* @param string $class_name 类名
*/
function class_autoloader($class_name)
{
Initializer::autoload($class_name);
}
//使用composer的自动加载[必须放在spl_autoload_register的前面]
$autoload_file = file_exists(Gc::$nav_root_path . "install/vendor/autoload.php") ? Gc::$nav_root_path . "install/vendor/autoload.php" : Gc::$nav_root_path . "install/autoload.php";
include $autoload_file;
spl_autoload_register("class_autoloader");
Initializer::initialize();
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
PHP
1
https://gitee.com/skygreen2015/RedisManager.git
git@gitee.com:skygreen2015/RedisManager.git
skygreen2015
RedisManager
RedisManager
master

搜索帮助