You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 lines
313 B

7 years ago
<?php
namespace framework\core;
use framework\database\DAOMySQLi;
/**
* 基础模型类
*/
class Model{
protected $mysqli,$prefix;
public function __construct(){
$option = require(APP_PATH . 'config.php');
$this->prefix = $option['prefix'];
$this->mysqli = DAOMySQLi::getSingleton($option);
}
}