SearchModel::__construct PHP Method

__construct() public method

初始化方法,链接搜索引擎数据库 sphinx1.10开始支持mysql协议
public __construct ( )
    public function __construct()
    {
        // $connection	= array(
        // 				'dbms'=>'mysql',
        // 				'hostname'=>(C('SEARCHD_HOST') ? C('SEARCHD_HOST') : $this->host),
        // 				'hostport'=>(C('SEARCHD_PORT') ? C('SEARCHD_PORT') : $this->port)
        // 			  );
        // $this->sdb = new Db($connection);
    }

Usage Example

Example #1
0
 public function __construct()
 {
     parent::__construct();
 }