Yii Framework Forum: Yii User Management - Yii Framework Forum

Jump to content

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

Yii User Management User Module and Mailbox integration not working Rate Topic: ***** 1 Votes

#1 User is offline   JmsDJ 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 7
  • Joined: 11-January 13
  • Location:India

Posted 18 January 2013 - 04:59 AM

I am getting foll. error after installing user Mgt. and mailbox modules.

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

Stack Trace :

#0
+
/opt/lampp/yii/framework/YiiBase.php(198): YiiBase::import("role.RoleModule", true)
#1
+
/opt/lampp/yii/framework/base/CModule.php(283): YiiBase::createComponent("role.RoleModule", "role", null, array("roleTable" => "role", "userRoleTable" => "user_role", "actionTable" => "action", "permissionTable" => "permission"))
#2

/opt/lampp/htdocs/Matrimony/protected/modules/user/models/Yum.php(153): CModule->getModule("role")

148 }
149
150 // returns the yii user module. Mostly used for accessing options
151 // by calling Yum::module()->option
152 public static function module($module = 'user') {
153 return Yii::app()->getModule($module);
154 }
155
156 public static function hasModule($module) {
157 return array_key_exists($module, Yii::app()->modules);
158 }

#3

/opt/lampp/htdocs/Matrimony/protected/modules/user/models/YumUser.php(379): Yum::module("role")

374 $relations['managed_by'] = array(
375 self::HAS_MANY, 'YumPermission', 'subordinate_id');
376
377 $relations['roles'] = array(
378 self::MANY_MANY, 'YumRole',
379 Yum::module('role')->userRoleTable . '(user_id, role_id)');
380
381 }
382
383 if (Yum::hasModule('messages')) {
384 Yii::import('application.modules.message.models.*');

#4
+
/opt/lampp/yii/framework/db/ar/CActiveRecord.php(2338): YumUser->relations()
#5
+
/opt/lampp/yii/framework/db/ar/CActiveRecord.php(388): CActiveRecordMetaData->__construct(YumUser)
#6

/opt/lampp/htdocs/Matrimony/protected/modules/user/models/YumUser.php(49): CActiveRecord::model("YumUser")

44 'class' => 'application.modules.user.components.CAdvancedArBehavior'));
45 }
46
47 public static function model($className = __CLASS__)
48 {
49 return parent::model($className);
50 }
51
52 public function delete()
53 {
54 if (Yum::module()->trulyDelete)
0

#2 User is offline   JmsDJ 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 7
  • Joined: 11-January 13
  • Location:India

Posted 20 February 2013 - 05:33 AM

After making some changes, The yii user management started working fine.
0

Share this topic:


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

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