connexion base et création premier crud

This commit is contained in:
Logshiro
2025-10-16 13:37:35 +02:00
parent 521d0a2d61
commit ea9a187326
38 changed files with 953 additions and 2 deletions

View File

@@ -0,0 +1,25 @@
<?php
/**
* Implémente des fonctions de class "fontion répétitives"
*
* @return Response
*/
namespace App\Controller;
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
use Symfony\Component\HttpFoundation\Response;
abstract class BaseController extends AbstractController
{
protected function renderWithData(string $template,
string $controllerName, string $msg,
array $data): Response
{
return $this->render($template, [
'controller_name' => $controllerName,
'msg' => $msg,
'tableau' => $data,
]);
}
}