📄 dbmodel.php
字号:
<?php
/*
数据库连接配置文件
*/
class DBModel {
public $_DB;
protected $_Response;
public $tblpre;
public $_Page;
public $_XML;
public $error;
public $printPage;
function __construct(){
$tblpre = '';
$this->_Page = new Page();
$this->_XML = new Easy_Config(); //载入xml解析类
$this->_Response = new Easy_Controller_Request();
$this->_DB = $GLOBALS['DB'];
$this->init();
}
final public function getInstance(){
return $this->_DB;
}
protected function init(){
//CheckDeny();
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -