http://www.yiiframework.com/doc/blog/1.1/en/prototype.scaffoldチュートリアルに続いて、/ 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',
),
),
);
これらは、main.phpのコードの最後の数行です。ご覧のとおり、指示に従いました...
'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',
),
),
);
しかし、index.php?r = giiにアクセスすると、次のエラーが発生します。
Error 404 Unable to resolve the request "gii".
参考までに-私は最新の安定したリリースであるバージョン1.1.12を使用しています。
アップデート
すべてを削除してやり直しましたが、現在は機能しています。途中で愚かなことをしたに違いない