示例#1
0
	function PhpCIdb() {
		parent::AbstractDb();
		//load the database settings from the config file
		//uses $this->db for convenience
		$CI =& get_instance();
		$CI->load->database();
		$this->db = &$CI->db;
		$this->base_path = $CI->config->item('absolute_path');
	}
示例#2
0
	function CompostDb() {
		parent::AbstractDb();
		$CI =& get_instance();
		if($CI->config->item('use_txt_db')){
			$CI->load->library('phptxtdb');
			$this->db = &$CI->phptxtdb;
		} else {
			$CI->load->library('phpcidb');
			$this->db = &$CI->phpcidb;
		}
	}
示例#3
0
	function Phptxtdb() {
		parent::AbstractDb();
		$CI =& get_instance();
		$this->_base_path = $CI->config->item('absolute_path');
	}