-3

I'm using yii framework and I'm new in yii and can't understand the problem in this code, it is giving error in this code and I just attached the image of my code

image1

and when I just try to echo '<pre>';print_r($role);echo '</pre>'; it just print code like this

image2

can't understand why this is giving error.

user3833682
  • 263
  • 5
  • 20

1 Answers1

0

Please check 'AuthAssignment' table has 'item_name' and 'user_id' columns. Also, please check users table has column name 'id'.

The error is appearing here due to wrong column name being used in AR.

Hope that will help to solve your issue.

The Coder
  • 618
  • 3
  • 10
  • 22