public function actionSave()
 {
     $question = new CExamQuestion();
     $question->setAttributes(CRequest::getArray(CExamQuestion::getClassName()));
     if ($question->validate()) {
         $question->save();
         $this->redirect("?action=index");
     }
     $this->setData("question", $question);
     $this->renderView("_examination/edit.tpl");
 }
 public function actionSave()
 {
     $object = new CExamQuestion();
     $object->setAttributes(CRequest::getArray($object::getClassName()));
     if ($object->validate()) {
         $object->save();
         if ($this->continueEdit()) {
             $this->redirect("workplanexamquestions.php?action=edit&id=" . $object->getId());
         } else {
             $this->redirect("workplanexamquestions.php?action=index&plan_id=" . $object->plan_id . "&type=" . $object->type);
         }
         return true;
     }
     $this->setData("object", $object);
     $this->renderView("_corriculum/_workplan/examQuestions/edit.tpl");
 }