From 52b077a48c743ba4d08ac00520a0bf1ef6deef5f Mon Sep 17 00:00:00 2001 From: Thomas Lange Date: Fri, 24 Feb 2017 21:27:59 +0100 Subject: Initial commit. --- system/404.php | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 system/404.php (limited to 'system/404.php') diff --git a/system/404.php b/system/404.php new file mode 100644 index 0000000..a92e9d6 --- /dev/null +++ b/system/404.php @@ -0,0 +1,29 @@ +set('HEAD', [ + 'NAME' => '404 Not Found', + 'DESC' => "The requested URL {$_SERVER['REQUEST_URI']} was not found on this server." + ]); + + $MainTemplate->set('HTML', Template\Factory::build('404')); + echo $MainTemplate; +} + +#=============================================================================== +# CATCH: Template\Exception +#=============================================================================== +catch(Template\Exception $Exception) { + $Exception->defaultHandler(); +} +?> \ No newline at end of file -- cgit v1.2.3