I am trying setup some roles for my blog and can’t seem to grasp the idea for rbac. I’ve read all available posts but none was of any significant help. So I have protected/config/auth.php file with the following code:
class Auth extends CPhpAuthManager
public function init()
$auth->createOperation('readPost', 'Read a post');
Basically I am trying to create a reader role and use it later in accessControl function of my Post/Comment controllers.
I don’t think that you can use it without a database, if you really want to use it without you’ll probably have to rewrite it yourself or use pelleke’s solution which you can find in the Guide but then you’ll be bypassing the RBAC.
If you were searching for the sql scheme it’s in the framework/web folder if i’m not mistaking.