public function actionSave() { $t = new CCoreModelFieldTranslation(); $t->setAttributes(CRequest::getArray($t::getClassName())); if ($t->validate()) { $t->save(); if ($this->continueEdit()) { $this->redirect("translations.php?action=edit&id=" . $t->getId()); } else { $this->redirect("fields.php?action=edit&id=" . $t->field_id); } } $this->setData("translation", $t); $this->renderView("_core/translation/edit.tpl"); }