Answer the question
In order to leave comments, you need to log in
How to do authorization/registration with roles in Yii2?
Good day to all.
You need to register / authorize on Yii2 with roles (admin / guest)
When a person logs in, he is redirected to a page that shows what role he has.
Previously, I just wanted to add the "role" field to the database and compare.
But they told me to do it in yii2 and I started googling about this frame.
Then, as I understand it, yii 2 has some kind of functionality for this.
Then I found some kind of RBAC 2
Then I found some Gii - a code generator.
Krch in a word what to google on this topic?
PS as I understand it, you need to build forms through the activeform class?
Thank you in advance for your replies and sorry for the bad description.
Answer the question
In order to leave comments, you need to log in
But they told me to do it in yii2 and I started googling about this frame.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question