首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Yii:我怎样才能从Humhub去Gii

Yii:我怎样才能从Humhub去Gii
EN

Stack Overflow用户
提问于 2014-11-02 14:57:46
回答 1查看 1.2K关注 0票数 0

这是我在yii中的main.php

代码语言:javascript
复制
'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'),
        ),

    ),

需要做出哪些改变?

EN

回答 1

Stack Overflow用户

发布于 2014-11-02 19:01:57

您不应修改main.php文件以启用gii。请在模块数组中修改_defaults.php并添加gii模块:

代码语言:javascript
复制
// 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
票数 2
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/26696827

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档