From da624182b0a0b6544967661d57fa62cf8399bd0b Mon Sep 17 00:00:00 2001 From: polycord Date: Thu, 25 Jul 2024 19:29:48 +0300 Subject: [PATCH] rendering section i think --- index.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/index.php b/index.php index ef69c6e..d29caa4 100644 --- a/index.php +++ b/index.php @@ -207,6 +207,14 @@ } }); + $router->get('/section', function() { + global $twig; + + $twig->addGlobal('pageUri', '/section'); + + echo $twig->render('section.twig'); + }); + $router->get('/u/([a-z0-9_\.]+)', function($name) { global $twig, $mysql, $discord; @@ -224,6 +232,7 @@ } }); + // ---------------- Admin ---------------- // $router->get('/admin', function() {