|
|
@ -303,6 +303,9 @@ class RbacController extends Controller |
|
|
|
} |
|
|
|
} |
|
|
|
``` |
|
|
|
``` |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
> Note: If you are using advanced template, you need to put your `RbacController` inside `console/controllers` directory |
|
|
|
|
|
|
|
and change namespace to `console/controllers`. |
|
|
|
|
|
|
|
|
|
|
|
After executing the command with `yii rbac/init` we'll get the following hierarchy: |
|
|
|
After executing the command with `yii rbac/init` we'll get the following hierarchy: |
|
|
|
|
|
|
|
|
|
|
|
![Simple RBAC hierarchy](images/rbac-hierarchy-1.png "Simple RBAC hierarchy") |
|
|
|
![Simple RBAC hierarchy](images/rbac-hierarchy-1.png "Simple RBAC hierarchy") |
|
|
|