/** * 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 }
public static function routeMatch($m = null) { return \Disco\classes\Router::routeMatch($m); }