コード例 #1
0
ファイル: App.class.php プロジェクト: discophp/framework
 /**
  * Make sure a \Disco\classes\Router matched against the requested URI, and serve the necessary page.
  *
  *
  * @return void
  */
 public final function tearDown()
 {
     /**
      * did this requested URI not find a match? If so thats a 404.
      */
     if (!\Disco\classes\Router::routeMatch()) {
         \View::serve(404);
     } elseif (http_response_code() != 200) {
         \View::serve(http_response_code());
     } else {
         \View::serve();
     }
     //el
 }
コード例 #2
0
ファイル: Router.facade.php プロジェクト: discophp/framework
 public static function routeMatch($m = null)
 {
     return \Disco\classes\Router::routeMatch($m);
 }