Jumat, 06 Desember 2013

langkah yii tahap 2 : generate kode pakai GII

buka file main.php di folder C:\xampp\htdocs\app1\myapp\protected\config

 

ada baris

        /*
        '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 */ jadi spt ini
dan edit password misalnya aswandi


        'gii'=>array(
            'class'=>'system.gii.GiiModule',
            'password'=>'aswandi',
            // If removed, Gii defaults to localhost only. Edit carefully to taste.
            'ipFilters'=>array('127.0.0.1','::1'),
        ),


kalo sudah buka http://localhost/app1/myapp/index.php?r=gii

masukkan password spt di kode, aswandi


Tidak ada komentar:

Posting Komentar