From 8ae270da94654e12c7b23bf93994249058ac9e2f Mon Sep 17 00:00:00 2001 From: horus Date: Sat, 26 Nov 2022 23:21:50 +0100 Subject: Initial commit --- app.php | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 app.php (limited to 'app.php') diff --git a/app.php b/app.php new file mode 100644 index 0000000..45ac885 --- /dev/null +++ b/app.php @@ -0,0 +1,29 @@ +addFunction($function); + +$function = new \Twig\TwigFunction('maincss', function() { + echo readfile(__DIR__ . '/public/css/bootstrap.min.css'); +}); +$twig->addFunction($function); + +/** + * Debug + */ +$function = new \Twig\TwigFunction('dump', function($data) { + var_dump($data); +}); +$twig->addFunction($function); + +require __DIR__ . '/db.php'; -- cgit v1.2.3