Example #1
0
 /**
  * 程序启动<br>
  * 根据request、route得到对应controller以及action,生成response
  */
 public function startup()
 {
     $this->_request = new Request();
     $this->_reponse = new Response();
     //TODO set_error_handler 设置全局错误处理
     Route::checkMatchAndRun($this->_request);
 }