Gii Model Generator Error


I’m having problem accessing Model Generator in Gii.

Everything works fine except Model Generator.

It will just display a blank page.

I checked with chrome’s developer tools, it shows that no data available.

I checked the folders under framework, i think it’s all good.

I didn’t change anything when it comes to configurations.

Please help. TIA.

Hi coy_coy

did you check the permissions to write file by php?

This problem exists only in Yii?

also check the configuarions on protected/config/main.php

‘gii’ => array(

‘class’ => ‘system.gii.GiiModule’,

‘password’ => ‘mypass’,

‘ipFilters’ => array(‘’, ‘::1’),


Do you use localhost or online remote server?

sorry for the late reply.

i’m sorry but i don’t know how to check the permission

main.php is configured correctly

i’m using localhost server only

Are you sure that the connection with database is correct? check the connectionstring




The names of your tables has valid format?

Try to connect with pure php commands to test if the connection with database works (also test few queries related with your tables), also the database is the mysql or another one?

Go to the protected directory.Apply these commands

chmod 755 controllers

chmod 755 models

chmod 755 views