M
M
Mors Clamor2019-11-04 18:05:31
Yii
Mors Clamor, 2019-11-04 18:05:31

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

1 answer(s)
M
Maxim, 2019-11-04
@66demon666

https://habr.com/ru/post/235485/

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question