From 487e0a487d94a0728156829a589808840f13b33e Mon Sep 17 00:00:00 2001 From: tim Date: Tue, 28 Dec 2021 21:05:28 +0100 Subject: [PATCH] Start with template --- src/Controller/.gitignore | 0 src/Controller/TestController.php | 16 ++++++++ templates/base.html.twig | 61 +++++++++++++++++++++++-------- 3 files changed, 62 insertions(+), 15 deletions(-) delete mode 100644 src/Controller/.gitignore create mode 100644 src/Controller/TestController.php diff --git a/src/Controller/.gitignore b/src/Controller/.gitignore deleted file mode 100644 index e69de29..0000000 diff --git a/src/Controller/TestController.php b/src/Controller/TestController.php new file mode 100644 index 0000000..fc062b3 --- /dev/null +++ b/src/Controller/TestController.php @@ -0,0 +1,16 @@ +render('base.html.twig'); + } +} \ No newline at end of file diff --git a/templates/base.html.twig b/templates/base.html.twig index d4f83f7..aca8ed3 100644 --- a/templates/base.html.twig +++ b/templates/base.html.twig @@ -1,19 +1,50 @@ - - - {% block title %}Welcome!{% endblock %} - - {# Run `composer require symfony/webpack-encore-bundle` to start using Symfony UX #} - {% block stylesheets %} - {{ encore_entry_link_tags('app') }} - {% endblock %} + + + + {% block title %}Welcome!{% endblock %} + + {# Run `composer require symfony/webpack-encore-bundle` to start using Symfony UX #} + {% block stylesheets %} + + + {{ encore_entry_link_tags('app') }} + {% endblock %} + + + +
+ {% block body %} + {% endblock %} +
- {% block javascripts %} - {{ encore_entry_script_tags('app') }} - {% endblock %} - - - {% block body %}{% endblock %} - +{% block javascripts %} + + {{ encore_entry_script_tags('app') }} +{% endblock %} +