Thanks Brent. I had a mental block/was overtired but I meant 'accessControl filter setting in the controller' and accessRules method in the base Controller. As more of a newbie than you are, I found your code difficult to follow. (I wondered if it is for Yii 2, as the thread title is Rbac in Yii 1.1?) I am wanting to use RBAC with code like
if(!Yii::app()->user->checkAccess('task', etc)) { //Where task is an item in RBAC hierarchy
throw exception...
}
...do task...