yii before actions for specified action -
i know controller have method called:ccontroller:beforeaction() called before every action in current controller. how make work before "actions"?
public function actions(){ return array( //trigger beforeaction action "uploader" 'uploader' => array( 'class' =>'', ), ); }
nice question. think there isn't anyway disable running beforeaction on specific action. if have beforeaction inside controller, method run before any action. can instead:
protected function beforeaction($action) { if($action->id != "uploader") { //do stuff here } return parent::beforeaction($action); }