render('main/index.html.twig', [ 'controller_name' => 'MainController', ]); } #[Route('/charte-animations', name: 'app_code_of_conduct')] public function codeOfConduct(): Response { // Lire le contenu de la charte des animations depuis un fichier $codeContent = file_get_contents(__DIR__ . '/../../public/pages/code.md'); return $this->render('main/markdown.html.twig', [ 'codeContent' => $codeContent, ]); } #[Route('/cgu', name: 'app_terms')] public function terms(): Response { // Lire le contenu de la charte des animations depuis un fichier $codeContent = file_get_contents(__DIR__ . '/../../public/pages/terms.md'); return $this->render('main/markdown.html.twig', [ 'codeContent' => $codeContent, ]); } #[Route('/legal', name: 'app_legal')] public function legal(): Response { // Lire le contenu de la charte des animations depuis un fichier $codeContent = file_get_contents(__DIR__ . '/../../public/pages/legal.md'); return $this->render('main/markdown.html.twig', [ 'codeContent' => $codeContent, ]); } #[Route('/contact', name: 'app_contact')] public function contact(): Response { // Lire le contenu de la charte des animations depuis un fichier $codeContent = file_get_contents(__DIR__ . '/../../public/pages/legal.md'); return $this->render('main/markdown.html.twig', [ 'codeContent' => $codeContent, ]); } }