From b8e23b7784cad4fdf04997ab10483aa0e60e3db2 Mon Sep 17 00:00:00 2001 From: gandhimathi Date: Thu, 1 Mar 2018 15:28:45 +0530 Subject: [PATCH] course details changes done --- .../controllers/Fees_Status_Controller.php | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/Apollo/api/application/controllers/Fees_Status_Controller.php b/Apollo/api/application/controllers/Fees_Status_Controller.php index 6447a3a8..cc92e222 100755 --- a/Apollo/api/application/controllers/Fees_Status_Controller.php +++ b/Apollo/api/application/controllers/Fees_Status_Controller.php @@ -39,7 +39,7 @@ class Fees_Status_Controller extends REST_Controller { $this->methods['getUniversityCourseForFees_post']['limit'] = 1000; // 1000 requests per hour per user/key $this->methods['getFeesStructureAssign_post']['limit'] = 1000; // 1000 requests per hour per user/key $this->methods['setFeesForStudent_post']['limit'] = 1000; // 1000 requests per hour per user/key - $this->methods['sendStudentNotification_post']['limit'] = 2000; // 2000 requests per hour per user/key + // $this->methods['sendStudentNotification_post']['limit'] = 2000; // 2000 requests per hour per user/key // load the model @@ -266,24 +266,25 @@ class Fees_Status_Controller extends REST_Controller { * send notification for student * created by kms * */ - public function sendStudentNotification_post(){ + public function sendStudentNotification_get(){ $sendMessage = $this->Fees_model->studentNotification(); if ($sendMessage) { - $this->response([ + echo "Success"; + /* $this->response([ 'message' => 'Done!', 'status' => REST_Controller::HTTP_OK - ], REST_Controller::HTTP_OK); // NOT_FOUND (404) being the HTTP response code + ], REST_Controller::HTTP_OK); // NOT_FOUND (404) being the HTTP response code*/ } else { // Set the response and exit - $this->response([ + /* $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 + ], REST_Controller::HTTP_NOT_FOUND); // NOT_FOUND (404) being the HTTP response code*/ } }