api接口
This commit is contained in:
@@ -22,11 +22,14 @@ class Fastphp
|
||||
|
||||
//运行程序
|
||||
public function run(){
|
||||
global $is_script;
|
||||
spl_autoload_register(array($this,'loadClass'));
|
||||
$this->setReporting();
|
||||
$this->unregisterGlobals();
|
||||
$this->setDbConfig();
|
||||
$this->route();
|
||||
if(!$is_script){
|
||||
$this->route();
|
||||
}
|
||||
}
|
||||
|
||||
//路由处理
|
||||
|
||||
Reference in New Issue
Block a user