Yii Framework Forum: Chapter 5 - Yii Framework Forum

Jump to content

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

Chapter 5

#1 User is offline   misto99 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 2
  • Joined: 06-December 13

Posted 06 December 2013 - 11:15 AM

Property "Project.users" is not defined.
public function getUserOptions()
122 {
123 $usersArray = CHtml::listData($this->users, 'id', 'username');
124 return $usersArray;
125 }
0

#2 User is offline   chandran 

  • Advanced Member
  • PipPipPip
  • Yii
  • Group: Members
  • Posts: 494
  • Joined: 08-October 12
  • Location:Austria

Posted 09 December 2013 - 04:35 AM

Hi,

I hope this will help

/protected/models/Project.php

in function relation() must have

'users' => array(self::MANY_MANY, 'User', 'tbl_project_user_assignment(project_id, user_id)'),

Thanks
chandran nepolean

My own extension:
http://www.yiiframew...sion/ejqueryte/

My wiki
http://www.yiiframew...checkboxcolumn/

If it work dont hesitate to click +1 button
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