1.在protected\config\main.php中,搜索
uncomment the following to enable the Gii tool
将
'gii'=>array
前后的注释去掉,再将
'password'=>'Enter Your Password Here',
修改为
'password'=>'你自定义的密码',
2.浏览器中输入
http://域名/index.php?r=gii
访问Gii
3.
点击Module Generator
4.protected\config\main.php,
'ipFilters'=>array('127.0.0.1','::1'),
),
修改为
'ipFilters'=>array('127.0.0.1','::1'),
),
'模块名',//引入模块才能使用
完成.