最新消息: 新版网站上线了!!!

yii gii的使用方法

1.打开 protected\config下的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'),              // 这里的IP也可以换成其他的
        ),   
    ),

转载请注明:谷谷点程序 » yii gii的使用方法