filters()方法定义在CController里,用Gii生成Controller时里面就有filters方法,代码如下: public function filters() { // return the filter configuration for this controller, e.g.: return array( 'inlineFilterName', array( 'class'=>'path.to.FilterClass', 'propertyName'=>'prope…