Fai*_*Ali 7 php yii yii-extensions
我从github下载了最新版本的Yii用户模块并将其解压缩
protected/modules/
Run Code Online (Sandbox Code Playgroud)
目录所以我的目录结构包括用户和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',
),
*/
),
),
)
Run Code Online (Sandbox Code Playgroud)
所以你可以看到我有所有代码设置,但当我点击网址
http://localhost/ewindow/index.php?r=user/install
Run Code Online (Sandbox Code Playgroud)
我收到以下错误
include(UserModule.php) [<a href='function.include'>function.include</a>]: failed to open stream: No such file or directory
Run Code Online (Sandbox Code Playgroud)
或者我尝试在我的应用程序中点击其他页面时出现错误
include(YumWebUser.php) [<a href='function.include'>function.include</a>]: failed to open stream: No such file or directory
Run Code Online (Sandbox Code Playgroud)
谁能告诉我这里我做错了什么?请帮我 .
编辑:
| 归档时间: |
|
| 查看次数: |
5809 次 |
| 最近记录: |