diff options
author | Thedro Neely <thedroneely@gmail.com> | 2018-10-11 01:01:10 -0400 |
---|---|---|
committer | Thedro Neely <thedroneely@gmail.com> | 2018-10-11 01:01:10 -0400 |
commit | 072f7782547401bda6a6b04574d6313912996315 (patch) | |
tree | 8621a9ebe97055e85360ed2c1579e8bec4243d7a /bootstrap | |
parent | 93b0be552c0577a7533661330693b9b897dc9008 (diff) | |
download | edwinmattiacci.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')
-rw-r--r-- | bootstrap/Router.php | 4 |
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)); } } |