这是我的代码:
class TestController extends Controller {
public function accessRules() {
return CMap::mergeArray(
array(
array('allow', 'actions' => array('create'), 'roles' => array('SR001')),
),
parent::accessRules()
);
}
public function afterAction($action) {
// Here
}
}
有没有办法知道它是成功还是失败?