diff --git a/widgets/Alert.php b/widgets/Alert.php index ae6c1d85c..267a5dd52 100644 --- a/widgets/Alert.php +++ b/widgets/Alert.php @@ -30,6 +30,7 @@ class Alert extends \yii\bootstrap\Widget * - key: the name of the session flash variable * - value: the bootstrap alert type (i.e. danger, success, info, warning) */ + public $alertTypes = [ 'error' => 'alert-danger', 'danger' => 'alert-danger', @@ -37,6 +38,7 @@ class Alert extends \yii\bootstrap\Widget 'info' => 'alert-info', 'warning' => 'alert-warning' ]; + /** * @var array the options for rendering the close button tag. * Array will be passed to [[\yii\bootstrap\Alert::closeButton]].