阿星
- 阿星 2015-07-27 已签到连续签到2天,获得了10个金钱
- 阿星 2015-07-26 已签到连续签到1天,获得了5个金钱
- 阿星 2015-07-22 已签到连续签到3天,获得了15个金钱
你检查一下,你的gii模块代码是否存在,不存在的话,去下载一个呗,
怎么看gii模块代码是否存在哒,是在vendor/yiisoft/yii2-gii下的Module.php吗?
/** * This is the main module class for the Gii module. * * To use Gii, include it as a module in the application configuration like the following: * * ~~~ * return [ * 'bootstrap' => ['gii'], * 'modules' => [ * 'gii' => ['class' => 'yii\gii\Module'], * ], * ] * ~~~ * * Because Gii generates new code files on the server, you should only use it on your own * development machine. To prevent other people from using this module, by default, Gii * can only be accessed by localhost. You may configure its [[allowedIPs]] property if * you want to make it accessible on other machines. * * With the above configuration, you will be able to access GiiModule in your browser using * the URL `http://localhost/path/to/index.php?r=gii` * * If your application enables [[\yii\web\UrlManager::enablePrettyUrl|pretty URLs]], * you can then access Gii via URL: `http://localhost/path/to/index.php/gii` * * @author Qiang Xue <qiang.xue@gmail.com> * @since 2.0 */
那个php文件里这段话是注释的,我有试过把那段return部分的注释去掉,可是还是没能直接输入那个url打开gii的那个页面