diff --git a/src/Controller/HomeController.php b/src/Controller/HomeController.php new file mode 100644 index 0000000..6beadc1 --- /dev/null +++ b/src/Controller/HomeController.php @@ -0,0 +1,19 @@ +render('index.html.twig', [ + 'eventName' => 'PHP South Wales', + ]); + } +} diff --git a/templates/index.html.twig b/templates/index.html.twig new file mode 100644 index 0000000..4c453d6 --- /dev/null +++ b/templates/index.html.twig @@ -0,0 +1,7 @@ +{% extends 'base.html.twig' %} + +{% block title %}Hi {{ eventName }}!{% endblock %} + +{% block body %} +