Alerts

See the alert documentation

Basic Alert with title and content:
Html::alert('Warning:', 'Something goes wrong')
Warning:Something goes wrong
Third parameter specify the alert status:
Html::alert('Hey!', 'Something append', array('status' => 'info')))
Hey!Something append
You can also choose between 'inline' or 'block' type, and add dismiss functionality:
Html::alert('Good', 'Congratulations', array('type' => 'block', 'status' => 'success', 'close' => true))
×

Good

Congratulations
Set close to 'fade' to fadeout alert before remove it:
Html::alert('Error', 'Serious issue', array('status' => 'error', 'close' => 'fade'))
×ErrorSerious issue