{ES} - 3.5.3.2.2 flash
flash(string $message, string $url, integer $pause)
Igualmente, el método flash() es usado para redirigir un usuario a una nueva página tras una operación. El método flash() es diferente en cuanto que muestra un mensaje antes de enviar al usuario a otra URL.
El primer parámetro debería contener el mensaje a mostrar, y el segundo parámetro es una URL relativa a CakePHP. CakePHP mostrará el mensaje en $message durante el número de segundos en $pause antes de reenviar al usuario a otra página.
Para mensajes flash en la página, cerciónate de echarle un ojo al método setFlash() del componente 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.
Diferencias
| Lines: 1-5 | Lines: 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>Igualmente, el método <code>flash()</code> es usado para redirigir un usuario a una nueva página tras una operación. El método <code>flash()</code> es diferente en cuanto que muestra un mensaje antes de enviar al usuario a otra URL.</p> <p>El primer parámetro debería contener el mensaje a mostrar, y el segundo parámetro es una URL relativa a CakePHP. CakePHP mostrará el mensaje en <code>$message</code> durante el número de segundos en <code>$pause</code> antes de reenviar al usuario a otra página.</p> <p>Para mensajes flash en la página, cerciónate de echarle un ojo al método <code>setFlash()</code> del componente <code>SessionComponent</code>.</p> |
