public function request_exam() { $id = $_GET['id']; $pilot_id = Auth::$userinfo->pilotid; ExamsData::request_exam($pilot_id, $id); $pid = Auth::$userinfo->pilotid; $message = ExamsData::get_setting_info('4'); $this->set('message', '<h4>' . $message->value . '</h4>'); $this->set('exams', ExamsData::get_exams()); $this->set('pilotmoney', Auth::$userinfo->totalpay); $this->show('exams/exam_list'); }