diff options
author | Thedro Neely <thedroneely@gmail.com> | 2018-09-09 04:07:33 -0400 |
---|---|---|
committer | Thedro Neely <thedroneely@gmail.com> | 2018-09-09 04:07:33 -0400 |
commit | 5ad67769c5692d0f6dd6f14d4d4d9deba8dd4540 (patch) | |
tree | c57e318a7769d99e8d1f4a36017ca9dab91ca1fc /bootstrap | |
parent | 0c2ec5ea3330c4b8a01c0f2c05b1e54475dd94d9 (diff) | |
download | thedroneely.com-5ad67769c5692d0f6dd6f14d4d4d9deba8dd4540.tar.gz thedroneely.com-5ad67769c5692d0f6dd6f14d4d4d9deba8dd4540.tar.bz2 thedroneely.com-5ad67769c5692d0f6dd6f14d4d4d9deba8dd4540.zip |
bootstrap: Re-tool router and allow web server to serve error pages.
The helper functions file is no longer required.
Diffstat (limited to 'bootstrap')
-rw-r--r-- | bootstrap/Bootstrap.php | 3 | ||||
-rw-r--r-- | bootstrap/Router.php | 4 |
2 files changed, 2 insertions, 5 deletions
diff --git a/bootstrap/Bootstrap.php b/bootstrap/Bootstrap.php index c91edd8..665bdc6 100644 --- a/bootstrap/Bootstrap.php +++ b/bootstrap/Bootstrap.php @@ -3,9 +3,6 @@ /* composer autoloader */ require '../vendor/autoload.php'; -/* app functions */ -require '../app/Functions.php'; - /* source config file */ $config = include '../AppConfig.php'; diff --git a/bootstrap/Router.php b/bootstrap/Router.php index 9673c36..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 '../app/views/404.view.php'); + + die(http_response_code(404)); } } |