add base template + mainController

This commit is contained in:
Olivier PARPAILLON
2024-11-18 15:52:10 +01:00
parent e0935ec69d
commit e5307da3e1
6 changed files with 183 additions and 0 deletions

View File

@@ -0,0 +1,16 @@
<?php
namespace App\Controller;
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\Routing\Attribute\Route;
class MainController extends AbstractController
{
#[Route('/', name: 'home')]
public function index(): Response
{
return $this->render('main/index.html.twig');
}
}