From 42c464cf3ef6c8d43769ff0d209fb1138de1b6ef Mon Sep 17 00:00:00 2001 From: sitawit Date: Fri, 20 Jun 2014 15:58:45 +0700 Subject: [PATCH] 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. --- docs/guide/security-authorization.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/guide/security-authorization.md b/docs/guide/security-authorization.md index 11db8b3..87b304d 100644 --- a/docs/guide/security-authorization.md +++ b/docs/guide/security-authorization.md @@ -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