| 12345678910111213141516171819 | 
							- <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); 
 
- class Model_bh extends Lin_Model 
 
- {
 
- 	function __construct(){
 
- 	parent::__construct();
 
- 	$this->load->database();
 
- 	$this->table = 'bh';
 
-     $this->load_table('bh');
 
- }
 
- 	/** 通过名称查找 */
 
- 	public function get_sku($sku)
 
- 	{
 
- 		return  $this->find("sku = '$sku'");	
 
- 	}
 
- 	public function get_features($features)
 
- 	{
 
- 		return  $this->find("features = '$features'");	
 
- 	}
 
- }  //end class
 
 
  |