Yii Framework Forum: Creating roles and restrict webpages - Yii Framework Forum

Jump to content

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

Creating roles and restrict webpages

#1 User is offline   NetoLozano 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 9
  • Joined: 30-January 17

Posted 11 August 2017 - 01:47 PM

Hello everyone i'm searching tutorials about how i can log in with the data of my database, giving roles or access to certaint website.



Any kind of help is useful!
Thanks
0

#2 User is offline   jkofsky 

  • Master Member
  • PipPipPipPip
  • Yii
  • Group: Members
  • Posts: 688
  • Joined: 17-May 10
  • Location:Pensacola, Florida

Posted 11 August 2017 - 02:28 PM

View PostNetoLozano, on 11 August 2017 - 01:47 PM, said:

Hello everyone i'm searching tutorials about how i can log in with the data of my database, giving roles or access to certaint website.

Any kind of help is useful!
Thanks

Check out RBAC or standard access control.

RBAC -> Role based access.

Access Control -> simple isGuest or Logged in. There is a way to use it for roles, but you need to right the checks yourself and I think it checks for a specific string, roles['admin'] kind of thing Bill Keck has a book 'Yii for Beginners' that I think shows how to do this. Google it, I got it for free, or really cheap as a download.
Do, or do not. There is no 'try.' Jedi Master Yoda
0

#3 User is offline   enter69 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 1
  • Joined: 14-September 17

Posted 21 September 2017 - 10:10 PM

I've had this problem too. I am looking for a solution. What can I recommend?
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