Answer the question
In order to leave comments, you need to log in
Yii2 in which file to prescribe the rules for RBAC?
Hello. I need to create a rule and attach it to Permission. I did not find in which file to prescribe the rule itself, so I threw it into Models with the namespace app\components\rbac. In the controller, I connect it (trying):
To which they tell me that such a class was not found. What am I missing or doing wrong? use app\components\rbac\PostRule;
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question