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