mirror of https://github.com/iAJue/Fantasy-field
16 lines
313 B
PHP
16 lines
313 B
PHP
<?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);
|
|
}
|
|
|
|
} |