Setting GII pada YII
- Buka file main.php di \protected\config\main.php
- Cari syntax berikut
/*
'modules'=>array(
// uncomment the following to enable the Gii tool
'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'),
),
*/
- Hilangkan tanda /* dan */ lalu ubah password sesuai keinginan
'modules'=>array(
// uncomment the following to enable the Gii tool
'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'),
),
- Simpan file. Lalu buka halaman gii (contoh : localhost/aplikasiku/index.php?r=gii)