What are the types of an Alert bean?


i’m generating alerts programmatically:

$alert = BeanFactory::newBean('Alerts');

The Alert have a type field, the examples i had seen use the type as ‘info’


My question is, there more types to alerts?, maybe error, warning or something like that?


The types represent css classes which determine the color of the alert. It comes from the types in bootstrap 3 (see http://getbootstrap.com/css/#helper-classes)

So the types are:

  • info
  • danger
  • success
  • primary
  • warning
1 Like