我的gii访问 Forbidden (#403) You are not allowed to access this page.

来源:4-1 创建后台模块

qq_伴我同行_2

2017-10-27

提示 Forbidden (#403) You are not allowed to access this page.

写回答

2回答

qq_伴我同行_2

提问者

2017-10-30

我的是直接在LNMP的服务器上面开发的,我本地开发环境连接到我服务器项目,不是本地,我按照你的教程也不行啊

//img.mukewang.com/szimg/59f6a4730001fdb510720458.jpg

//img.mukewang.com/szimg/59f6a473000112b207130311.jpg


0
0

Jason

2017-10-28

把客户端IP加进配置文件,config/web.php 里面有个gii模块,里面有个allowedIP,把你的客户端IP加进去

0
4
Jason
回复
qq_伴我同行_2
那个IP那里直接输入 $_SERVER['REMOTE_ADDR']
2017-11-02
共4条回复

Yii2.0开发一个仿京东商城平台

【毕设】购物、下单、支付、收货...各功能模块开发,打造京东式电商平台

1543 学习 · 655 问题

查看课程