Following http://www.yiiframework.com/doc/blog/1.1/en/prototype.scaffold tutorial, it mentions to add some code to /blog/protected/config/main.php
return array(
......
'import'=>array(
'application.models.*',
'application.components.*',
),
'modules'=>array(
'gii'=>array(
'class'=>'system.gii.GiiModule',
'password'=>'pick up a password here',
),
),
);
These are the last few lines of my code for main.php, as you can see, I have followed instructions...
'errorHandler'=>array(
// use 'site/error' action to display errors
'errorAction'=>'site/error',
),
'log'=>array(
'class'=>'CLogRouter',
'routes'=>array(
array(
'class'=>'CFileLogRoute',
'levels'=>'error, warning',
),
// uncomment the following to show log messages on web pages
/*
array(
'class'=>'CWebLogRoute',
),
*/
),
),
),
// application-level parameters that can be accessed
// using Yii::app()->params['paramName']
'params'=>array(
// this is used in contact page
'adminEmail'=>'example@example.com',
),
'import'=>array(
'application.models.*',
'application.components.*',
),
'modules'=>array(
'gii'=>array(
'class'=>'system.gii.GiiModule',
'password'=>'pick up a password here',
),
),
);
Yet when I visit index.php?r=gii, I get the following error:
Error 404 Unable to resolve the request "gii".
FYI - I am using version 1.1.12 which is the latest stable release.
UPDATE
I deleted everything and started again, and now is working. must have done something silly en-route