I was exploring Yii2Advanced Application and I got into this error Error: Unknown command “rbac/init”.  googled allot and the issue was not clear and finallary I found that there is conflict of links we might be following


This is native yii2Advanced application template https://github.com/yiisoft/yii2-app-advanced and it dont have rbac support from scratch.

There is another improved version of same repo which has rbac and few other features https://github.com/nenad-zivkovic/yii2-advanced-template ,

I downloaded repo of nenad and follow the rbac command it worked fine. for native one I think we need to impliment the rbac




Leave a Reply

Your email address will not be published. Required fields are marked *