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