Creating roles and restrict webpages


(Netoflaco) #1

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


(Jkofsky) #2

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.


(Pattamonsiwapat) #3

I’ve had this problem too. I am looking for a solution. What can I recommend?