Hi!
I’m trying to customize my 403 error message but i can’t find how.
I try with this
public function accessRules()
{
return array(
array('allow',
'actions'=>array('index'),
'users'=>array('*'),
),
array('allow',
'actions'=>array('index','view', 'admin', 'delete', 'update', 'create'),
'expression'=>'Usuarios::isAdmin()'
),
array('allow',
'actions'=>array('admin','delete'),
'users'=>array('admin'),
),
array('deny',
'users'=>array('*'),
'deniedCallback' => SiteController::notAuthorizedUser()
),
);
}
and the static method ‘notAuthorizedUser’ only throws the CHttpException with the message that i want, but with this code always throws the Exception even with the admin.
Also I read something about CAccessControlFilter, but i don’t know how to implement it.
I hope somebody could help me.
Regards from Mexico.