From 37ad92ca9a5cf4d4c6e298c81781e46072be5a38 Mon Sep 17 00:00:00 2001 From: Maxiser Date: Fri, 11 Oct 2024 16:28:28 +0200 Subject: [PATCH] controller login --- src/Controller/LoginController.php | 18 ++++++++++++++++++ templates/login/index.html.twig | 20 ++++++++++++++++++++ 2 files changed, 38 insertions(+) create mode 100644 src/Controller/LoginController.php create mode 100644 templates/login/index.html.twig diff --git a/src/Controller/LoginController.php b/src/Controller/LoginController.php new file mode 100644 index 0000000..4946695 --- /dev/null +++ b/src/Controller/LoginController.php @@ -0,0 +1,18 @@ +render('login/index.html.twig', [ + 'controller_name' => 'LoginController', + ]); + } +} diff --git a/templates/login/index.html.twig b/templates/login/index.html.twig new file mode 100644 index 0000000..6b95ed1 --- /dev/null +++ b/templates/login/index.html.twig @@ -0,0 +1,20 @@ +{% extends 'base.html.twig' %} + +{% block title %}Hello LoginController!{% endblock %} + +{% block body %} + + +
+

Hello {{ controller_name }}! ✅

+ + This friendly message is coming from: + +
+{% endblock %}