course details changes done

This commit is contained in:
gandhimathi 2018-02-13 12:20:07 +05:30
parent b0e262f773
commit d20823d6d2

View File

@ -32,12 +32,12 @@ class SessionMater_Controller extends REST_Controller {
$now = new DateTime();
$now->setTimezone(new DateTimezone('Asia/Kolkata'));
$details['SessionName'] = $this->post('sessionName');
$details['UniversityID'] = $this->post('universityName');
$details['CreatedBy'] = $this->post('createdBy');
$details['IsActive'] = $this->post('status');
$details['CreatedOn'] = $now->format('Y-m-d H:i:s');
$university['UniversityID'] = $this->post('universityName');
$sessionDetails = $this->sessionM_model->addSession($details);// Check if the users data store contains users (in case the database result returns NULL)
$sessionDetails = $this->sessionM_model->addSession($details,$university);// Check if the users data store contains users (in case the database result returns NULL)
if ($sessionDetails)
{
$sessionDetails['status'] = REST_Controller::HTTP_OK;