
这是我在yii中的main.php。
'modules'=>array(
// uncomment the following to enable the Gii tool
'gii'=>array(
'class'=>'system.gii.GiiModule',
'password'=>'gii',
// If removed, Gii defaults to localhost only. Edit carefully to taste.
'ipFilters'=>array('127.0.0.1','::1'),
),
),需要做出哪些改变?
发布于 2014-11-02 19:01:57
您不应修改main.php文件以启用gii。请在模块数组中修改_defaults.php并添加gii模块:
// Modules
'modules' => array(
'gii'=>array(
'class'=>'system.gii.GiiModule',
'password'=>'gii',
// If removed, Gii defaults to localhost only. Edit carefully to taste.
'ipFilters'=>array('127.0.0.1','::1'),
),
// All HumHub Modules will automatically loaded via
// /modules/*/autostart.php
// or
// /modules_core/*/autostart.phphttps://stackoverflow.com/questions/26696827
复制相似问题