Yii:我怎么能和Humhub一起去Gii

时间:2014-11-02 06:57:46

标签: php yii gii

I can not go to Gii

这是我在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'),
        ),

    ),

需要进行哪些更改?

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