Yii Framework Forum: Installing yii-user management module Alias "user.UserModule" is invalid fro new diirctory structure - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Installing yii-user management module Alias "user.UserModule" is invalid fro new diirctory structure Rate Topic: -----

#1 User is offline   chaitsi 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 25
  • Joined: 21-November 11

Posted 22 August 2012 - 04:21 AM

I m trying to install yii user management module
and i got error

Alias "user.UserModule" is invalid. Make sure it points to an existing PHP file and the file is readable.

I have extracted files under protected/modules folder

also try with extracting files under protected/ folder

but in both case it display issue ...

see my config/main.php setting


'import'=>array(
'application.models.*',
'application.components.*',
#user module starts
'application.modules.user.models.*',
'application.modules.user.components.*',

#user module ends
),

'modules'=>array(

'user'=>array(
'returnUrl'=>array('/site/index'),
'debug' => true,
),

),

'components'=>array(
'user'=>array(
// enable cookie-based authentication
'allowAutoLogin'=>true,
'loginUrl'=>array('/user/login'),
),

'db'=>array(
'connectionString' => 'mysql:host=localhost;dbname=dbname',
'emulatePrepare' => true,
'username' => 'root',
'password' => '',
'charset' => 'utf8',
'tablePrefix' => '',
),


I have different directory structure and used file to run applicaiton WebApplicationEndBehavior.php
same as this http://www.yiiframew...onend-behavior/

I don't understand where is the problem ..








SOLVED:

when we extract we have folder directory structure like

user
avatar
role
profile
user
registration
...................


we need to place all directory inside user to modules/
so in module will be like
protected/
modules/
avatar
role
profile
user
registration
.......................
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

4 User(s) are reading this topic
0 members, 4 guests, 0 anonymous users