Welcome to the Cookbook

loading...

5.2.2 Mostrare i messaggi di errore di Auth

The original text for this section has changed since it was translated. Please help resolve this difference. You can:

More information about translations

Per visualizzare i messaggi di errore che Auth genera, è necessario inserire il seguente codice alla tua view. In questo caso il messaggio comparirà sotto i normali messaggi flash:

<?php
	if ($session->check('Message.flash')) {
		$session->flash();
	}
	if ($session->check('Message.auth')) {
		$session->flash('auth');
	}
?>
  1. <?php
  2. if ($session->check('Message.flash')) {
  3. $session->flash();
  4. }
  5. if ($session->check('Message.auth')) {
  6. $session->flash('auth');
  7. }
  8. ?>