Vous êtes connecté en tant que anonymous Se Deconnecter
Browse code

commit fonctionnel

git authored on 15/03/2019 11:48:34
Showing 3 changed files
... ...
@@ -0,0 +1,2 @@
1
+<?php
2
+$twig_var['data'] = 'acceuil';
0 3
\ No newline at end of file
... ...
@@ -1,2 +1,17 @@
1
+{# accueil.html.twig #}
2
+{% extends "./base.html.twig" %}
3
+
4
+{% block menu %}
5
+{% endblock %}
6
+
7
+{% block body %}
1 8
 <h1>Accueil</h1>
2
-<br /><br />
3 9
\ No newline at end of file
10
+<br /><br /><br />
11
+{{ data }}
12
+{% endblock %}
13
+
14
+{% block stylesheets %}
15
+{% endblock %}
16
+
17
+{% block javascripts %}
18
+{% endblock %}
4 19
\ No newline at end of file
... ...
@@ -0,0 +1,43 @@
1
+{# base.html.twig #}
2
+
3
+<!DOCTYPE html>
4
+<html lang="fr">
5
+<head>
6
+    <meta charset="UTF-8" />
7
+    <meta http-equiv="x-ua-compatible" content="ie=edge">
8
+
9
+    <title>{{ page_title }}</title>
10
+    <meta name="description" content="{{ page_description }}">
11
+    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
12
+
13
+    <!-- Les favicons -->
14
+    <link rel="apple-touch-icon" href="apple-touch-icon-114x114-precomposed.png">
15
+    <link rel="icon" type="image/x-icon" href="favicon.ico" />
16
+
17
+    {% block stylesheets %}{% endblock %}
18
+
19
+</head>
20
+<body>
21
+<!--[if lte IE 9]>
22
+<p class="browserupgrade">You are using an <strong>outdated</strong> browser. Please
23
+    <a href="https://browsehappy.com/">upgrade your browser</a> to improve your experience and security.</p>
24
+<![endif]-->
25
+
26
+<!-- Menui-->
27
+{% block menu %}{% endblock %}
28
+<!-- End Menu -->
29
+
30
+<!-- Body -->
31
+<div class="container full-body">
32
+    {% block body %}{% endblock %}
33
+</div>
34
+<!-- End Body -->
35
+
36
+<footer class="bg-dark big-navbar" tabindex="40">
37
+    {% block footer %}
38
+    {% endblock %}
39
+</footer>
40
+{% block javascripts %}{% endblock %}
41
+
42
+</body>
43
+</html>