Man… To apply a RBAC in Yii you shoud folow the doc: RBAC
But you shoud folow about migrations to, it create all tables that you need to implements end use RBAC. Use it: yii migrate --migrationPath=@yii/rbac/migrations
I don’t remenber exactly how to run it, but you try run it into your app migrations folder.