diff --git a/app/src/Bootstrap.php b/app/src/Bootstrap.php index 728ec4c..8b9a6b9 100644 --- a/app/src/Bootstrap.php +++ b/app/src/Bootstrap.php @@ -124,7 +124,6 @@ class Bootstrap * @var Configuration */ $config = $container->get('config'); - $app->addErrorMiddleware(true, true, true); // Twig $templatePath = __DIR__ . "/../templates"; @@ -140,6 +139,9 @@ class Bootstrap $twig->getEnvironment() ->addGlobal('flash', $flash); $app->add(TwigMiddleware::create($app, $twig)); + + // Add the error handling middleware + $app->addErrorMiddleware(true, true, true); } /** diff --git a/app/src/Controller/User/LoginUserPage.php b/app/src/Controller/User/LoginUserPage.php new file mode 100644 index 0000000..fc87cb9 --- /dev/null +++ b/app/src/Controller/User/LoginUserPage.php @@ -0,0 +1,14 @@ +render('user/login'); + } +} diff --git a/app/templates/user/login.twig b/app/templates/user/login.twig new file mode 100644 index 0000000..47a77ca --- /dev/null +++ b/app/templates/user/login.twig @@ -0,0 +1,19 @@ +{% extends 'layouts/skeleton.twig' %} + +{% block content %} +