diff options
Diffstat (limited to '404.php')
-rw-r--r-- | 404.php | 23 |
1 files changed, 5 insertions, 18 deletions
@@ -9,22 +9,9 @@ require_once 'core/application.php'; #=============================================================================== http_response_code(404); -#=============================================================================== -# TRY: Template\Exception -#=============================================================================== -try { - $MainTemplate = Template\Factory::build('main'); - $MainTemplate->set('NAME', '404 Not Found'); - $MainTemplate->set('HEAD', ['NAME' => $MainTemplate->get('NAME')]); - $MainTemplate->set('HTML', Template\Factory::build('404')); - - echo $MainTemplate; -} +$MainTemplate = Template\Factory::build('main'); +$MainTemplate->set('NAME', '404 Not Found'); +$MainTemplate->set('HEAD', ['NAME' => $MainTemplate->get('NAME')]); +$MainTemplate->set('HTML', Template\Factory::build('404')); -#=============================================================================== -# CATCH: Template\Exception -#=============================================================================== -catch(Template\Exception $Exception) { - Application::exit($Exception->getMessage()); -} -?>
\ No newline at end of file +echo $MainTemplate; |