Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

gii not working in yii

Tags:

php

yii

gii

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

like image 508
Semeena Kabeer Avatar asked Aug 03 '12 09:08

Semeena Kabeer


People also ask

What is GII in Yii Framework?

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.

How do I access GII?

To open the gii generation tool, type http://localhost:8080/index.php?r=gii: in the address bar of the web browser.


1 Answers

This is the only line that worked for me:

'ipFilters'=>array($_SERVER['REMOTE_ADDR']),
like image 64
test techie Avatar answered Sep 20 '22 03:09

test techie