Beispiel #1
0
 private static function _Dispath()
 {
     // 获取HTTP  请求体和返回体
     $request = WF_Application_Request::Instance();
     $response = WF_Application_Response::Instance();
     // 路由管理器初始化
     $router = WF_Application_Router::Instance();
     // 进行路由
     $router->router($request);
     // 请求分发器
     try {
         WF_Application_Dispather::dispath($request, $response);
     } catch (Exception $ex) {
         self::$DispathError = $ex;
         // error controller show the error
         self::_dispathError();
         //log error
         self::_errorLog($ex->getMessage());
     }
     /**
      * 进行输出
      */
     $response->send();
 }