dashboard changes
This commit is contained in:
parent
2e6106bced
commit
16681772fd
@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user