예제 #1
0
 protected function save_new_test()
 {
     $exam_description = DB::escape($this->post->exam_description);
     $cost = DB::escape($this->post->cost);
     $passing = DB::escape($this->post->passing);
     ExamsData::create_new_test($exam_description, $cost, $passing);
     //ExamsData::add_exam_revision($exam_id, $revised_by, $revision);
     $this->set('message', '<div id="success">New Test Added!</div>');
 }