From 4e729bbc612b4cb762fb262d7f93c4c28c263610 Mon Sep 17 00:00:00 2001 From: TheClashFruit Date: Fri, 15 Sep 2023 17:44:03 +0200 Subject: [PATCH] fix: twig var not found --- index.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/index.php b/index.php index 7c2ddc1..3abb618 100644 --- a/index.php +++ b/index.php @@ -17,14 +17,20 @@ }); $router->get('/', function() { + global $twig; + echo $twig->render('index.twig'); }); $router->get('/nations', function() { + global $twig; + echo $twig->render('index.twig'); }); $router->set404(function() { + global $twig; + http_response_code(404); echo $twig->render('404.twig');