Ejemplo n.º 1
0
 function __construct()
 {
     parent::__construct();
     $this->load->model('user', '', TRUE);
     $this->load->model('documents', '', TRUE);
     $this->load->library('user_agent');
     $this->load->library('../controllers/home');
     self::$session_data = $this->session->userdata('logged_in');
     self::$_email = self::$session_data['email'];
     self::$_type = self::$session_data['type'];
     self::$_id = self::$session_data['id'];
     self::$data = array('email' => self::$_email, 'type' => self::$_type, 'id' => self::$_id);
 }