Beispiel #1
0
 public function __construct($options)
 {
     parent::__construct($options);
     if (function_exists('get_instance')) {
         $this->_ci =& get_instance();
     }
 }
Beispiel #2
0
 function __construct($options)
 {
     parent::__construct($options);
     if (function_exists("get_instance") && defined("APPPATH")) {
         $this->_ci =& get_instance();
         //$this->_ci->load->model('product_model', 'product');
         //$this->_ci->load->model('post_model', 'post');
     }
 }