feat(TutoController): Affiche un message si aucun tutoriel n'est trouvé.

This commit is contained in:
Serreau Jovann
2025-10-27 09:27:38 +01:00
parent 39520c24e1
commit f47c743bff

View File

@@ -94,7 +94,9 @@ class TutoController extends AbstractController
{
$tutos = $esyWebTutoRepository->findBy(['type' => $type]);
if(count($tutos) === 0){
return $this->render('tuto/no_tuto.twig');
return $this->render('tuto/no_tuto.twig',[
'websiteTitle' => 'Tutoriels'
]);
}
return $this->render('tuto/tuto.twig', [