Commit 42c464cf by sitawit

Update a tip and an example

- add a tip that rbac.php is needed to create manually when using PhpManager. - update that RbacController example needs to import Yii namespace.
parent 209dd7e6
......@@ -202,6 +202,9 @@ return [
The `authManager` can now be accessed via `\Yii::$app->authManager`.
> Tip: By default, [[yii\rbac\PhpManager]] stores RBAC data in the file `@app/data/rbac.php`.
Sometime you need to create this file manually.
### Building Authorization Data
......@@ -222,6 +225,7 @@ command that will initialize authorization data once via APIs offered by `authMa
<?php
namespace app\commands;
use Yii;
use yii\console\Controller;
class RbacController extends Controller
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment