aboutsummaryrefslogtreecommitdiff
path: root/bootstrap/Router.php
diff options
context:
space:
mode:
authorThedro Neely <thedroneely@gmail.com>2018-10-11 01:01:10 -0400
committerThedro Neely <thedroneely@gmail.com>2018-10-11 01:01:10 -0400
commit072f7782547401bda6a6b04574d6313912996315 (patch)
tree8621a9ebe97055e85360ed2c1579e8bec4243d7a /bootstrap/Router.php
parent93b0be552c0577a7533661330693b9b897dc9008 (diff)
downloadedwinmattiacci.com-072f7782547401bda6a6b04574d6313912996315.tar.gz
edwinmattiacci.com-072f7782547401bda6a6b04574d6313912996315.tar.bz2
edwinmattiacci.com-072f7782547401bda6a6b04574d6313912996315.zip
bootstrap: views: Webserver will handle error pages through FastCGI. Return relevant HTTP response code only.
Diffstat (limited to 'bootstrap/Router.php')
-rw-r--r--bootstrap/Router.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/bootstrap/Router.php b/bootstrap/Router.php
index a098c30..34e278c 100644
--- a/bootstrap/Router.php
+++ b/bootstrap/Router.php
@@ -36,7 +36,7 @@ class Router
return $this->routes[$requestType][$uri];
}
// throw new Exception('No route defined for this URI: "'.$uri.'"');
- http_response_code(404);
- die(require '../views/404.view.php');
+
+ die(http_response_code(404));
}
}