fix
This commit is contained in:
@@ -0,0 +1,34 @@
|
||||
<?php
|
||||
|
||||
class Admin_Controller extends MCORE_Controller {
|
||||
|
||||
|
||||
public $data = array();
|
||||
|
||||
function __construct() {
|
||||
parent::__construct();
|
||||
// this is your constructor
|
||||
$this->load->helper('form');
|
||||
$this->load->helper('url');
|
||||
|
||||
// you dont have bussines here if you are not in session
|
||||
if (!isset($_SESSION['session_id']) or ! isset($_SESSION['backoffice_id']) ) {
|
||||
redirect('/logout');
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
public function getSessionArray() {
|
||||
$data["current_date"] = date('l jS \of F Y h:i:s A');
|
||||
|
||||
return $data;
|
||||
}
|
||||
|
||||
private function refreshAccountDetail($member_id) {
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
<?php
|
||||
|
||||
//class Dash_model extends CI_Model {
|
||||
class Dash_model extends ADMIN_Controller {
|
||||
function __construct() {
|
||||
|
||||
}
|
||||
|
||||
/* public function getPatientCount(){
|
||||
|
||||
$mysql = "SELECT p.practice_id,p.id AS patient_id,p.member_id,p.long_id,m.firstname,m.lastname,m.phone,p.added "
|
||||
." FROM patients p LEFT JOIN members m ON m.id=p.member_id ORDER BY p.added DESC";
|
||||
$query = $this->db->query($mysql);
|
||||
$num = $query->num_rows();
|
||||
$data["patient_list"] = $query->result();
|
||||
return $data;
|
||||
}
|
||||
|
||||
*
|
||||
*/
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
<?php
|
||||
|
||||
class Start_Controller extends MCORE_Controller {
|
||||
|
||||
|
||||
public $data = array();
|
||||
|
||||
function __construct() {
|
||||
parent::__construct();
|
||||
// this is your constructor
|
||||
$this->load->helper('form');
|
||||
$this->load->helper('url');
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user