Configure GII in YII Framework 1.14

In this tutorial I will explain to you how you can configure GII in YII Framework correctly. It's very simple.

First of all you must open protected\config\main.php file and remove these tags:

// uncomment the following to enable the Gii tool

*/

from this code:

'gii'=>array(
'class'=>'system.gii.GiiModule',
'password'=>'Enter Your Password Here',

// If removed, Gii defaults to localhost only. Edit carefully to taste.
'ipFilters'=>array('127.0.0.1','::1'),
),

Also, you must remove this code:

// If removed, Gii defaults to localhost only. Edit carefully to taste.
'ipFilters'=>array('127.0.0.1','::1'),

and add a password:

'gii'=>array(
'class'=>'system.gii.GiiModule',
'password'=>'mypassword',
),

Save and go to http://localhost/(projectname)/index.php?r=gii

I have also created a video tutorial for this subject:









Leave a Comment