I downloaded the latest release of Yii user module from github and extracted it under
protected/modules/
directory so my directory structure under this include the user and other modules included in the zip. I made changes to the main file as mentioned in the docs so my main.php now looks like this
'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',
),
*/
),
),
)
so as you can see I have all the code setup but when I hit the url
http://localhost/ewindow/index.php?r=user/install
I got the following error
include(UserModule.php) [<a href='function.include'>function.include</a>]: failed to open stream: No such file or directory
or I try to hit some other page in my application I get the error
include(YumWebUser.php) [<a href='function.include'>function.include</a>]: failed to open stream: No such file or directory
Can anybody tell me what I am doing wrong here ? please help me .
EDIT :
here is the link to the extentsion https://github.com/thyseus/yii-user-management
My way of figure out this issue is to turn on short_open_tag in php.ini file. It was Off before I modified it.
Check wamp server settings also. specially the php version you are using...
check files permisions also:
chmod -R go+rx protected/modules
It seems the module developer used short_open_tags in. i.e, <? ?>
instead of <?php ?>
. So just enable it in PHP.
In Xampp, locate php.ini and set short_open_tags = On
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With