This commit is contained in:
gayathri1990 2018-08-17 12:59:14 +05:30
commit a17befb292
3 changed files with 30 additions and 0 deletions

View File

@ -157,6 +157,8 @@ $route['getDashboardCallTrack'] = 'Call_Tracking_Controller/getDashboardCallTrac
$route['getTotalStudent'] = 'Dashboard_Controller/getTotalStudent';
$route['getTotalEmployee'] = 'Dashboard_Controller/getTotalEmployee';
$route['getTotalUsers'] = 'Dashboard_Controller/getTotalUsers';
$route['getUniversityRegisteredStudent'] = 'Dashboard_Controller/getUniversityRegisteredStudent';
$route['getDashboradStudentPendingFees'] = 'Dashboard_Controller/getDashboradStudentPendingFees';
/*login page announcement*/
$route['getLoginAnnouncementDetails'] = 'Login_Controller/getLoginAnnouncementDetails';

View File

@ -89,4 +89,25 @@ class Dashboard_Controller extends REST_Controller {
], REST_Controller::HTTP_NOT_FOUND); // NOT_FOUND (404) being the HTTP response code
}
}
/*
* get university based student registration details for dash board
* created by kms
* */
public function getUniversityRegisteredStudent(){
$data = $this->post('data');
$getRegisteredDetails = $this->dashboard_model->get_univ_registered_student($data);
if ($getRegisteredDetails) {
$getRegisteredDetails['status'] = REST_Controller::HTTP_OK;
// Set the response and exit
$this->response($getRegisteredDetails, REST_Controller::HTTP_OK); // OK (200) being the HTTP response code
}
else
{
// Set the response and exit
$this->response([
'message' => 'No users were found',
'status' => REST_Controller::HTTP_NOT_FOUND
], REST_Controller::HTTP_NOT_FOUND); // NOT_FOUND (404) being the HTTP response code
}
}
}

View File

@ -69,6 +69,13 @@ class Dashboard_model extends CI_Model
}
return $result;
}
/*
* get university registerd student details
* created by kms
* */
public function get_univ_registered_student($details){
}
}