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 %}