rvs1977
(Rvs1977)
1
Im new to Yii and doing the blog-tutorial.
I have created a testproject and uploaded it to the server. That works fine.
Next I have to add the Gii module - In the main.php file
www.example.com/blog/index.php?r=gii
Here it says: "403 Access denied"
‘modules’=>array(
'gii'=>array(
'class'=>'system.gii.GiiModule',
'password'=>'my_password',
),
Is that because I try to develop from the server? is it a better practice to develop from localhost?
regards
Rasmus
redguy
(Maciej Lizewski)
2
read about gii ipfilters: http://www.yiiframework.com/doc/api/1.1/GiiModule#ipFilters-detail
by default you can only connect from localhost, but it can be changed.
rvs1977
(Rvs1977)
3
ok thank you, I will try that.
using ipFilters, I have to know the ipaddress of my server?!
redguy
(Maciej Lizewski)
4
no - you need to provide ip-s from which may come the request to Gii. This is for security reasons.