mdmsoft / yii2-admin

Auth manager for Yii2 (RBAC Manager)
GNU General Public License v3.0
1.16k stars 574 forks source link

Add New Rules #113

Closed abhi1693 closed 9 years ago

abhi1693 commented 9 years ago

I'm using the advanced yii template. I've configured it properly. I'm using DbManager as the class in the authManager section. I get an error whenever I create a new rule. Error: Unknown class: yii\rbac\Rule

How to solve this?

mdmunir commented 9 years ago

Check your framework installation. Is file vendor/yiisoft/yii2/rbac/Rule exists?

abhi1693 commented 9 years ago

yes

abhi1693 commented 9 years ago

image

abhi1693 commented 9 years ago

I'm probably getting this error because 'Rule' is an abstract class and we cannot instantiate it. Could this be the reason of this error?

arrhkm commented 7 years ago

It same to me, plss help me ...