- <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); 
 
- class Model_power extends Lin_Model 
 
- {
 
- 	function __construct(){
 
- 	parent::__construct();
 
- 	$this->load->database();
 
- 	$this->table = 'power';
 
-     $this->load_table('power');
 
- }
 
- 	/** 通过名称查找 */
 
- 	public function get_powertext($powertext)
 
- 	{
 
- 		return  $this->find("powertext like '%$powertext%'");	
 
- 	}
 
- }  //end class
 
 
  |