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