115 Star 530 Fork 121

GVPgouguoyin / phprap

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
index.php 588 Bytes
一键复制 编辑 原始数据 按行查看 历史
勾国印 提交于 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/gouguoyin/phprap.git
git@gitee.com:gouguoyin/phprap.git
gouguoyin
phprap
phprap
master

搜索帮助