I am new in yii framework. In my site gii shows the error
Error 403 You are not allowed to access this page.
I set the gii in the config file like this
'gii'=>array(
'class'=>'system.gii.GiiModule',
'password'=>'test123',
'ipFilters'=>array('192.168.0.101','127.0.0.1','::1'),
),
still it show the error
yiisoft/yii2-gii The Gii extension for the Yii frameworkThis extension provides a Web-based code generator, called Gii, for Yii framework 2.0 applications. You can use Gii to quickly generate models, forms, modules, CRUD, etc. For license information check the LICENSE-file.
To open the gii generation tool, type http://localhost:8080/index.php?r=gii: in the address bar of the web browser.
This is the only line that worked for me:
'ipFilters'=>array($_SERVER['REMOTE_ADDR']),
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With