Flash messages -> Notifications


#1

Hello,

I use Flash messages for error messages in a login form.
I would like these messages to be notified with client-side animation
I do not know how to do…
If someone has an idea ?

Thank you


#2

Hi, @nikoola

Controller:
session.flash({ status: 'error' })

View:

@if(old(‘status’) == ‘error’)

/* And now here you can do anything you want,
show animated css or script */

@endif

Maybe like this:
<script> alert('Ooh, some problem') </script>


#3

Thanks

I managed to find a notification script “izitoast.js”

I’m French :wink:
Merci