The question basically is described in the topic, wondering how to create a user (with admin rights) in the advanced framework template YII2?, In order to use the backend (control panel).
|
2 answers
Just register user. The first registered user will have administrator rights.
- Not quite the right answer, by default there is no division into administrators! All users in the backend and frontend - users without roles (you can just register by default only from the frontend) - Oleg Shleif
|
To separate the rights to the administrator and users, you need to implement it yourself - RBAC in Yii2
|