I use security filters in all my controllers with custom access but I would like to use general filters just once in my "main" CController::controller…
[color="#0000FF"]Is there a way to ADD filters to the custom filters WITHOUT overwriting the base controller. Something like:[/color]
class SiteController extends Controller
{
public function filters(){
return array('accessControl'); // Custom stuff
}
}
class Controller extends CController
{
public function generalFilters(){
return array('generalStuff','otherGeneralstuff'); // General stuff to ALSO run
}
}