course details changes done
This commit is contained in:
parent
b0e262f773
commit
d20823d6d2
@ -32,12 +32,12 @@ class SessionMater_Controller extends REST_Controller {
|
|||||||
$now = new DateTime();
|
$now = new DateTime();
|
||||||
$now->setTimezone(new DateTimezone('Asia/Kolkata'));
|
$now->setTimezone(new DateTimezone('Asia/Kolkata'));
|
||||||
$details['SessionName'] = $this->post('sessionName');
|
$details['SessionName'] = $this->post('sessionName');
|
||||||
$details['UniversityID'] = $this->post('universityName');
|
|
||||||
$details['CreatedBy'] = $this->post('createdBy');
|
$details['CreatedBy'] = $this->post('createdBy');
|
||||||
$details['IsActive'] = $this->post('status');
|
$details['IsActive'] = $this->post('status');
|
||||||
$details['CreatedOn'] = $now->format('Y-m-d H:i:s');
|
$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)
|
if ($sessionDetails)
|
||||||
{
|
{
|
||||||
$sessionDetails['status'] = REST_Controller::HTTP_OK;
|
$sessionDetails['status'] = REST_Controller::HTTP_OK;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user