Implementing a role based access control is a very easy process and you can even load your roles from the database if you want.
Here's a possible implementation for MongoDb of the RBAC standard. Create a class "MongoDbManager" in
and modify your
params.php` file like this:
This is an extension to Yii 2.0: Write & use a custom Component in Yii2.0 for Advanced Template
We will leverage Yii2-excelview widget. So, first of all is install Yii2-excelview: