aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--bootstrap/Bootstrap.php3
-rw-r--r--bootstrap/Router.php4
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));
}
}