проблема с Gii
Добавлено: 2011.01.25, 19:18
сделал действия как описано тут http://yiiframework.ru/doc/blog/ru/prototype.scaffold
Установка Gii, Создание моделей.
Все сохранил, но захожу на сайт по адресу http://www.***.ru/1/index.php?r=gii
Показывает
Непонятно чот( с самого начала такие проблемы. Конфиг перепроверил на три раза, вроде верно. Вот он
Установка Gii, Создание моделей.
Все сохранил, но захожу на сайт по адресу http://www.***.ru/1/index.php?r=gii
Показывает
Код: Выделить всё
Error 404
Unable to resolve the request "gii".
Код: Выделить всё
<?php
// uncomment the following to define a path alias
// Yii::setPathOfAlias('local','path/to/local-folder');
// This is the main Web application configuration. Any writable
// CWebApplication properties can be configured here.
return array(
'basePath'=>dirname(__FILE__).DIRECTORY_SEPARATOR.'..',
'name'=>'OLOLO',
// preloading 'log' component
'preload'=>array('log'),
'import'=>array(
'application.models.*',
'application.components.*',
),
'modules'=>array(
'gii'=>array(
'class'=>'system.gii.GiiModule',
'password'=>'test',
),
),
// application components
'components'=>array(
'user'=>array(
// enable cookie-based authentication
'allowAutoLogin'=>true,
),
// uncomment the following to enable URLs in path-format
/*
'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>',
),
),
*/
'db'=>array(
'connectionString'=>'sqlite:/1/protected/data/blog.db',
'tablePrefix'=>'tbl_',
),
// uncomment the following to use a MySQL database
/*
'db'=>array(
'connectionString' => 'mysql:host=localhost;dbname=testdrive',
'emulatePrepare' => true,
'username' => 'root',
'password' => '',
'charset' => 'utf8',
),
*/
'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'=>'webmaster@example.com',
),
);