Ściągnąłem najnowszą wersję modułu użytkownika Yii z github i ekstrahowano ją podstanie zainstalować moduł Yii użytkownika
protected/modules/
katalogu więc moja struktura katalogów pod obejmować użytkownika i inne moduły zawarte w zip. I wprowadził zmiany do głównego pliku, jak wspomniano w docs więc moja main.php teraz wygląda to
'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',
),
*/
),
),
)
tak jak widać mam wszystkie ustawienia kodu, ale kiedy uderzy url
http://localhost/ewindow/index.php?r=user/install
mam następujący błąd
include(UserModule.php) [<a href='function.include'>function.include</a>]: failed to open stream: No such file or directory
lub staram się trafić jakąś inną stronę w mojej aplikacji pojawia się błąd
include(YumWebUser.php) [<a href='function.include'>function.include</a>]: failed to open stream: No such file or directory
Czy ktoś może mi powiedzieć, co robię źle tutaj? proszę pomóż mi .
EDIT:
tu jest link do extentsion https://github.com/thyseus/yii-user-management
podczas zadawania pytań na temat rozszerzeń, proszę podać link do strony rozszerzeń, istnieje wiele rozszerzeń do zarządzania użytkownikami, skąd mam wiedzieć, który z nich używasz? –
https://github.com/thyseus/yii-user-management –
@ bool.dev czy możesz mi pomóc .. Nie jestem w stanie wymyślić błędu –