1 Star 0 Fork 121

李留威 / phprap

forked from gouguoyin / phprap 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
index.php 588 Bytes
一键复制 编辑 Web IDE 原始数据 按行查看 历史
勾国印 提交于 2019-08-15 13:55 . hasRule()改为hasAuth()
<?php
error_reporting(0);
error_reporting(E_ERROR | E_WARNING | E_PARSE);
$runtime_dir = __DIR__ . '/runtime';
if(!is_writable($runtime_dir)){
exit($runtime_dir . '没有可写权限');
}
$db_file = __DIR__ . '/configs/db.php';
if(!is_writable($db_file)){
exit($db_file . '没有可写权限');
}
defined('YII_DEBUG') or define('YII_DEBUG', true);
require __DIR__ . '/vendor/autoload.php';
require __DIR__ . '/vendor/yiisoft/yii2/Yii.php';
require __DIR__.'/function/function.php';
$config = require __DIR__ . '/configs/web.php';
(new yii\web\Application($config))->run();
PHP
1
https://gitee.com/liliuwei/phprap.git
git@gitee.com:liliuwei/phprap.git
liliuwei
phprap
phprap
master

搜索帮助

14c37bed 8189591 565d56ea 8189591