From 48d93de7332379186e685c74c3682c35cfbb626f Mon Sep 17 00:00:00 2001 From: gandhimathi Date: Thu, 15 Feb 2018 09:36:38 +0530 Subject: [PATCH] course details changes done --- .../controllers/HallTickets_Controller.php | 76 +++++++++++++++++++ 1 file changed, 76 insertions(+) create mode 100644 Apollo/api/application/controllers/HallTickets_Controller.php diff --git a/Apollo/api/application/controllers/HallTickets_Controller.php b/Apollo/api/application/controllers/HallTickets_Controller.php new file mode 100644 index 00000000..9a26ca5c --- /dev/null +++ b/Apollo/api/application/controllers/HallTickets_Controller.php @@ -0,0 +1,76 @@ +methods['getCourseSubjectDetails_post']['limit'] = 500; // 500 requests per hour per user/key + + // load the model + $this->load->model('Hallticket_model', 'Hallticket_model'); + + } + + + + /* + * get student list for fees update + * created by kms + * */ + public function getStudentList_post() + { + $search['requestedBy'] = $this->post('requestedtBy'); + $search['Firstname'] = $this->post('studentName'); + $search['MobileNumber'] = $this->post('mobileNumber'); + $search['UniversityID'] = $this->post('university'); + $search['CourseID'] = $this->post('course'); + $search['requestedDept'] = $this->post('requestedDept'); + $search['requestedBranch'] = $this->post('branchId'); + $getStudentDetails = $this->Fees_model->getStudentList($search); + if ($getStudentDetails) + { + $getStudentDetails['status'] = REST_Controller::HTTP_OK; + // Set the response and exit + $this->response($getStudentDetails, REST_Controller::HTTP_OK); // OK (200) being the HTTP response code + } + else + { + // Set the response and exit + $this->response([ + 'message' => 'No records found!', + 'status' => REST_Controller::HTTP_NOT_FOUND + ], REST_Controller::HTTP_NOT_FOUND); // NOT_FOUND (404) being the HTTP response code + } + + + } + + +} \ No newline at end of file