public function actionSave() { $object = new CCorriculumDisciplineCompetention(); $object->setAttributes(CRequest::getArray($object::getClassName())); if ($object->validate()) { $object->save(); if ($this->continueEdit()) { $this->redirect("competentions.php?action=edit&id=" . $object->getId()); } else { $this->redirect("disciplines.php?action=edit&id=" . $object->discipline_id); } return true; } $this->setData("object", $object); $this->renderView("_corriculum/_competentions/edit.tpl"); }