اول باید ماژول gii رو فعال کنید. به فولدر config برید و فایل main.php رو باز کنید حالا چند خط زیر رو از حالت کامنت در بیارید تا ماژول فعال شه. من کلمه عبور رو admin گذاشتم که البته امن نیست و کلا قبل از آپلود فایل هاتون به سرور دوباره باید این ماژول رو غیر فعال کنید
'modules'=>array(
// uncomment the following to enable the Gii tool
'gii'=>array(
'class'=>'system.gii.GiiModule',
'password'=>'admin',
// If removed, Gii defaults to localhost only. Edit carefully to taste.
'ipFilters'=>array('127.0.0.1','::1'),
),
برای دسترسی به gii از آدرس
http://hostname/[path-to-index.php]/index.php?r=gii استفاده کنید