public function __construct($options) { parent::__construct($options); if (function_exists('get_instance')) { $this->_ci =& get_instance(); } }
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'); } }