Backend Service

This commit is contained in:
2019-04-01 15:04:07 +00:00
parent 617d41139f
commit e6b002c62b
8 changed files with 65 additions and 4 deletions
@@ -0,0 +1,30 @@
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
class Home extends Web_Controller {
public function index() {
$data = array();
$this->renderExternalPage('welcome_message', $data);
}
public function custom(){
$data = array();
if ($this->uri->segment(3) === FALSE)
{
$product_id = 0;
}
else
{
$product_id = $this->uri->segment(3);
}
echo "Here " .$product_id;
$data["facility_image"]='';
$this->renderExternalPage('welcome_message', $data);
}
}
@@ -46,7 +46,12 @@ $data["loc"] = $_SERVER["REMOTE_ADDR"];
}
public function patientView(){
echo $data['patient_id'] = trim($this->input->post('patientID'));
echo $data['patient_id'] = trim($this->input->post('patientID'));
$this->load->model('patient_model');
$out = $this->patient_model->LoadPatient(0, $data['patient_id']);
print_r( $out );
$this->renderProviderSecurePage('patient/thispatient', $data);
}