traduction + alert

This commit is contained in:
maher
2025-12-29 16:41:58 +01:00
parent fc2c7a3d25
commit fef43c222d
19 changed files with 206 additions and 718 deletions

View File

@@ -6,6 +6,8 @@ use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\Routing\Attribute\Route;
use Symfony\Contracts\Translation\TranslatorInterface;
final class DemoController extends AbstractController
{
#[Route('/demo/index', name: 'app_demo_index')]
@@ -18,6 +20,9 @@ final class DemoController extends AbstractController
#[Route('/demo/empty', name: 'app_demo_empty')]
public function empty(): Response
{
$this->addFlash('danger', " <strong>Well done!</strong> You successfully read this important alert message.");
//$this->addFlash('success', $this->translator->trans('conference.success_create_message', array(), 'Admin'));
return $this->render('demo/empty.html.twig', []);
}