How to create and add Rules to the db in DbManager rbac?

1 March 2018, 04:52

I want create and add a Rule in {{%auth_rule}} table of my db in yii2 app.

I can't find any document or guide for do this operation in yii2. but i found addRule($rule) method in yii\rbac\DbManager and i think, i should use this method for do this but i don't know how?

Whether i should create a class for any Rules in @app\rbac or this method just used for PhpManager?
Hugo Leisink
1 March 2018, 21:44
I have no idea what you are talking about. This forum is for questions about the Hiawatha webserver.
This topic has been closed.