hi dear friends
how to use accessRules Function array with another function
for example :
class SiteController extends Controller
{
public function filters()
{
return array(
'accessControl',
);
}
public function accessRules()
{
SiteController::test();
}
public function test()
{
return array(
array('deny',
'actions'=>array('contact','login'),
'roles'=>array('superAdmin')
)
);
}
}
when this example code used : b[/b]
PHP warning
Invalid argument supplied for foreach()
D:\xampp\htdocs\yiiframework\framework\web\auth\CAccessControlFilter.php(82)
How do I use this way ?
thanks