<?php
class AccessControlFilter extends CFilter
{
protected function preFilter($filterChain)
{
// logic being applied before the action is executed
return true; // false if the action should not be executed
}
protected function postFilter($filterChain)
{
// logic being applied after the action is executed
}
}
And then my controller…
/**
* @return array action filters
*/
public function filters() {
return array(
//'accessControl', // perform access control for CRUD operations
'application.filters.AccessControlFilter'
);
}
But everytime I get this:
Can anybody explain to me why it is throwing and exception?