public function behaviors() { $behaviors = parent::behaviors(); if ($this->action->id == 'code' || $this->action->id == 'vcode') { unset($behaviors['authenticator']); } return $behaviors; }
public function actions() { $actions = parent::actions(); unset($actions['index'], $actions['delete'], $actions['create'], $actions['update'], $actions['view']); return $actions; }