/** * Inline editor server, here we will save the new trasnslation */ public function saveDataTask() { $id_text = Get::req('id_text', DOTY_INT, 0); $lang_code = Get::req('lang_code', DOTY_MIXED, Lang::get()); $new_value = Get::req('new_value', DOTY_MIXED, ''); $old_value = Get::req('old_value', DOTY_MIXED, ''); $model = new LangAdm(); $re = $model->saveTranslation($id_text, $lang_code, $new_value); $res = array('success' => $re, 'new_value' => $new_value, 'old_value' => $old_value); echo $this->json->encode($res); }