traduction + alert
This commit is contained in:
@@ -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', []);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user