public function actionChangeStatus() { $id = $this->getParams('id'); $isEnabled = $this->getParams('isEnabled'); HelpDesk::updateAll(['isEnabled' => $isEnabled], ['_id' => $id]); return 'ok'; }