Showing posts with label Gii Tools In YII. Show all posts
Showing posts with label Gii Tools In YII. Show all posts

Sunday, June 30, 2013

How to enable Gii Tools In YII

Setting GII Tools in YII

1. Open your_app/protected/config/main.php
2. uncomment the following th 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'),
),
*/

3. The UrlManager code needs to be uncommented as well
/*
'urlManager'=>array(
'urlFormat'=>'path',
'rules'=>array(
'<controller:\w+>/<id:\d+>'=>'<controller>/view',
'<controller:\w+>/<action:\w+>/<id:\d+>'=>'<controller>/<action>',
'<controller:\w+>/<action:\w+>'=>'<controller>/<action>',
),
),*/
4. Change the Gii password
5. Go to your localhost/your_app/gii