Skip to content
Snippets Groups Projects
Commit 5fe526d8 authored by WAGNER ERIC's avatar WAGNER ERIC
Browse files

modification de l'affichage de la page d'accueil

parent 1bd0eb6b
Branches
No related merge requests found
<?php
namespace App\Controller;
use App\Entity\Villes;
use App\Form\VillesType;
use App\Repository\VillesRepository;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
use Symfony\Component\Routing\Annotation\Route;
......@@ -10,12 +13,10 @@ class StaticPages extends AbstractController
/**
* @Route("/", name="home")
*/
public function home(): Response
public function home(VillesRepository $villesRepository): Response
{
$titre = 'Bienvenue';
return $this->render('home.html.twig', [
'titre' => $titre
return $this->render('villes/index.html.twig', [
'villes' => $villesRepository->findAll(),
]);
}
......
......@@ -22,7 +22,7 @@
<header class="flex justify-between items-center bg-[#5C9EAD] text-[#EEEEEE] px-5">
<div class="flex flex-row p-5 items-center gap-5">
<img src="{{ asset('images/image.png') }}" alt="logo" class="w-[100px] h-[100px]">
<h1><a href="{{ path('home') }}" class="text-6xl font-title">ConcertFinder</a></h1>
<h1><a href="{{ path('app_villes_index') }}" class="text-6xl font-title">ConcertFinder</a></h1>
</div>
<nav>
<ul class="flex justify-around flex-row gap-5">
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment