/** * Additional behavior associated with different routes in the controller. * * We allow only POST requests to "delete" action, everything else is default for backend. * * @see http://www.yiiframework.com/doc/api/1.1/CController#filters-detail * @see http://www.yiiframework.com/doc/api/1.1/CAccesControlFilter * @see http://yii-booster.clevertech.biz/getting-started.html#initialization * * @return array */ public function filters() { return array_merge([['postOnly + delete']], parent::filters()); }
/** * @return array action filters */ public function filters() { return CMap::mergeArray(parent::filters(), array('accessControl')); }