Я загрузил последний выпуск пользовательского модуля Yii с github и распаковал его под
protected/modules/
каталог, поэтому моя структура каталогов в нем включает пользователя и другие модули, включенные в zip. Я внес изменения в основной файл, как указано в документации, поэтому мой файл main.php теперь выглядит так
'import'=>array(
'application.modules.user.models.*',
'application.models.*',
'application.components.*',
),
'modules'=>array(
// uncomment the following to enable the Gii tool
'gii'=>array(
'class'=>'system.gii.GiiModule',
'password'=>'sheikh24',
// If removed, Gii defaults to localhost only. Edit carefully to taste.
'ipFilters'=>array('127.0.0.1','::1'),
),
'user' => array(
'debug' => true,
)
),
'components'=>array(
'user'=>array(
'class' => 'application.modules.user.components.YumWebUser',
'allowAutoLogin'=>true,
'loginUrl' => array('//user/user/login'),
),
// uncomment the following to use a MySQL database
'db'=>array(
'connectionString' => 'mysql:host=localhost;dbname=ewindow',
'emulatePrepare' => true,
'username' => 'root',
'password' => '',
'charset' => 'utf8',
'tablePrefix' => '',
),
'errorHandler'=>array(
// use 'site/error' action to display errors
'errorAction'=>'index/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',
),
*/
),
),
)
так что, как вы можете видеть, у меня есть все настройки кода, но когда я нажимаю URL
http://localhost/ewindow/index.php?r=user/install
Я получил следующую ошибку
include(UserModule.php) [function.include]: failed to open stream: No such file or directory
или я пытаюсь перейти на другую страницу в своем приложении, я получаю сообщение об ошибке
include(YumWebUser.php) [function.include]: failed to open stream: No such file or directory
Может ли кто-нибудь сказать мне, что я делаю неправильно здесь? пожалуйста, помогите мне.
РЕДАКТИРОВАТЬ:
вот ссылка на расширениеhttps://github.com/thyseus/yii-user-management