TIC\CoreBundle\Base\TICController::alert
Ajout d'un message dans le FlashBag (avec redirection optionnelle).
Signature
protected function alert(string
$type,
mixed
$message,
[mixed
$redirect = NULL] )
Parameters
$type
—
string
- Contexte bootstrap : success | info | warning | danger
$message
—
TIC\CoreBundle\Base\string|array
- Texte simple ou structure avec : title [text] [extra] [params]
$redirect
—
- Boolean (liste/referer), Entité (ou id) ou autre route
Returns
- RedirectResponse
- Réponse HTTP avec redirection selon le paramètre $redirect