0

我不能去 Gii

这是我main.php在 yii (humhub)

'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'),
        ),

    ),

需要做哪些改变?

4

1 回答 1

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
于 2014-11-02T11:01:57.457 回答