这是我在yii(humhub)中的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'),
),
),
需要进行哪些更改?
答案 0 :(得分:2)
您不应修改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.php