Tôi đã tải về phiên bản mới nhất của module sử dụng Yii từ github và trích xuất nó dướikhông thể cài đặt mô-đun dùng yii
protected/modules/
thư mục để cấu trúc thư mục của tôi dưới này bao gồm người sử dụng và các module khác bao gồm trong zip. Tôi đã thực hiện thay đổi đối với tập tin chính như đã đề cập trong các tài liệu để main.php của tôi bây giờ trông như thế này
'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',
),
*/
),
),
)
như vậy là bạn có thể thấy tôi có tất cả các thiết lập mã nhưng khi tôi nhấn url
http://localhost/ewindow/index.php?r=user/install
tôi đã nhận lỗi sau
include(UserModule.php) [<a href='function.include'>function.include</a>]: failed to open stream: No such file or directory
hay tôi cố gắng để đạt một số trang khác trong ứng dụng của tôi, tôi nhận được lỗi
include(YumWebUser.php) [<a href='function.include'>function.include</a>]: failed to open stream: No such file or directory
Ai có thể cho tôi biết tôi đang làm gì sai ở đây? làm ơn giúp tôi .
EDIT:
đây là liên kết đến extentsion https://github.com/thyseus/yii-user-management
khi đặt câu hỏi về tiện ích, xin vui lòng bao gồm một liên kết đến các trang mở rộng, có rất nhiều phần mở rộng cho quản lý người dùng, làm thế nào tôi sẽ biết cái nào bạn đang sử dụng? –
https://github.com/thyseus/yii-user-management –
@ bool.dev bạn có thể giúp tôi không .. Tôi không thể tìm ra lỗi –