{IT} - 3.5.3.2.2 flash

flash(string $message, string $url, integer $pause)

Similmente, il metodo flash() è usato per direzionare un utente ad una nuova pagina dopo una certa operazione. Il metodo flash() si differenzia in quanto visualizza un messaggio prima di mandare l'utente ad un altro URL.

Il primo parametro conterrà il messaggio che verrà visualizzato, e il secondo parametro è un indirizzo relativo CakePHP. CakePHP visualizzerà il $message per $pause secondi prima di reindirizzare l'utente.

Per i messaggi flash in-page, consultare il metodo setFlash() del SessionComponent.

{EN} - 3.5.3.2.2 flash

flash(string $message, string $url, integer $pause)

Similarly, the flash() method is used to direct a user to a new page after an operation. The flash() method is different in that it shows a message before passing the user on to another URL.

The first parameter should hold the message to be displayed, and the second parameter is a CakePHP-relative URL. CakePHP will display the $message for $pause seconds before forwarding the user on.

For in-page flash messages, be sure to check out SessionComponent’s setFlash() method.

Differences

Lines: 1-5Lines: 1-5
 <title>flash</title> <title>flash</title>
 <p class="method"><code>flash(string $message, string $url, integer $pause)</code></p> <p class="method"><code>flash(string $message, string $url, integer $pause)</code></p>
-<p>Similarly, the flash() method is used to direct a user to a new page after an operation. The flash() method is different in that it shows a message before passing the user on to another URL.</p>
<p>The first parameter should hold the message to be displayed, and the second parameter is a CakePHP-relative URL. CakePHP will display the $message for $pause seconds before forwarding the user on.</p>
<p>For in-page flash messages, be sure to check out SessionComponent’s setFlash() method.</p>
+<p>Similmente, il metodo flash() è usato per direzionare un utente ad una nuova pagina dopo una certa operazione. Il metodo flash() si differenzia in quanto visualizza un messaggio prima di mandare l'utente ad un altro URL.</p>
<p>Il primo parametro conterrà il messaggio che verrà visualizzato, e il secondo parametro è un indirizzo relativo CakePHP. CakePHP visualizzerà il $message per $pause secondi prima di reindirizzare l'utente.</p>
<p>Per i messaggi flash in-page, consultare il metodo setFlash() del SessionComponent.</p>