Comus Party 1.0.0
Application web de mini-jeux en ligne
Chargement...
Recherche...
Aucune correspondance
ControllerPolicy.class.php
Aller à la documentation de ce fichier.
1<?php
9
10namespace ComusParty\Controllers;
11
12use Twig\Environment;
13use Twig\Error\LoaderError;
14use Twig\Error\RuntimeError;
15use Twig\Error\SyntaxError;
16use Twig\Loader\FilesystemLoader;
17
23{
29 public function __construct(FilesystemLoader $loader, Environment $twig)
30 {
31 parent::__construct($loader, $twig);
32 }
33
41 public function showCgu()
42 {
43 $template = $this->getTwig()->load('cgu.twig');
44 echo $template->render();
45 }
46}
__construct(FilesystemLoader $loader, Environment $twig)
Constructeur de la classe ControllerPolicy.
showCgu()
Affiche la page des Conditions Générales d'Utilisation.
getTwig()
Retourne l'attribut twig, correspondant à l'environnement de Twig.