<?php
namespace App\Controller;
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\Routing\Annotation\Route;
#[Route('/', name: 'app_')]
class MainController extends AbstractController
{
#[Route('', name: 'home')]
public function home(): Response
{
return $this->render('main/index.html.twig', [
'controller_name' => 'MainController',
'page_name' => 'Home',
]);
}
#[Route('/events', name: 'events')]
public function events(): Response
{
return $this->render('main/index.html.twig', [
'controller_name' => 'MainController',
'page_name' => 'Events',
]);
}
#[Route('/contact', name: 'contact')]
public function contact(): Response
{
return $this->render('main/index.html.twig', [
'controller_name' => 'MainController',
'page_name' => 'Contact',
]);
}
#[Route('/chez-nous', name: 'find')]
public function find(): Response
{
return $this->render('main/index.html.twig', [
'controller_name' => 'MainController',
'page_name' => 'Chez Nous',
]);
}
#[Route('/location', name: 'location')]
public function location(): Response
{
return $this->render('main/index.html.twig', [
'controller_name' => 'MainController',
'page_name' => 'Location',
]);
}
}