public function editSuperAdmin($teacher) { $instId = session('instId'); try { $operator = new \Home\Model\OperatorModel(); $operatorId = $operator->updateSuperAdmin($instId, $teacher); session('teacherId', $teacher); $data = "true"; } catch (Exception $e) { $data = "false"; } $this->ajaxReturn($data); }