Hi,
Is it possible to access rules defined in accessRules method of Controller classes from other php scripts.
ex.
class DepartmentController extends CController
{
public function accessRules()
{
array('allow',
'actions'=>array('create'),
'users'=>array('admin'),
),
}
}
Can I access these rules defined in this controller from other parts of my code to check whether a particular user has access to function defined in this controller.
Thanks,
Chamal