Yii Framework Forum: Rbac And Yii Rights Confusion - Yii Framework Forum

Jump to content

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

Rbac And Yii Rights Confusion Do actions have to be set in the controllers?

#1 User is offline   bambinou 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 208
  • Joined: 06-August 13

Posted 15 October 2013 - 03:44 AM

Hello,

I am new to Yii and have found the doc around the Yii Rights extension not self explanatory.

In Yii rights we set actions,then Operations, Tasks and Roles. We then assign a Role to a user.
Where I am confused is:

1)I need to set the user accessRules in each controllers, but what do I add? Just the roles without actions?
2)Will the Yii rights extension link the actions I have prepared in the GUI to the Roles I will set in the Controllers?
3)Would any of you have a basic example of a typical setup in a controller while using Yii Rights?


Thank you so much, as soon as I understand this part, thing will get so much easier....

Benny
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