From 5ad67769c5692d0f6dd6f14d4d4d9deba8dd4540 Mon Sep 17 00:00:00 2001 From: Thedro Neely Date: Sun, 9 Sep 2018 04:07:33 -0400 Subject: bootstrap: Re-tool router and allow web server to serve error pages. The helper functions file is no longer required. --- bootstrap/Bootstrap.php | 3 --- bootstrap/Router.php | 4 ++-- 2 files changed, 2 insertions(+), 5 deletions(-) (limited to 'bootstrap') 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)); } } -- cgit v1.2.3