File tree Expand file tree Collapse file tree 2 files changed +12
-8
lines changed Expand file tree Collapse file tree 2 files changed +12
-8
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,8 @@ Yii2 Gentelella Change Log
441.3.0 Under development
55-----------------------
66
7+ - Fix #13 : Make FlashAlert widget array compatible (al.gushchin)
8+
791.2.0 August 1, 2016
810--------------------
911
Original file line number Diff line number Diff line change @@ -69,14 +69,16 @@ public function run()
6969 (isset ($ alert ['icon ' ]) ? new Icon ($ alert ['icon ' ]) . ' ' : '' ) . $ alert ['header ' ]
7070 );
7171 }
72- echo Alert::widget (
73- [
74- 'body ' => $ header . Yii::$ app ->session ->getFlash ($ flashName ),
75- 'options ' => [
76- 'class ' => 'alert alert- ' . $ alert ['class ' ],
77- ],
78- ]
79- );
72+ foreach ((array ) Yii::$ app ->session ->getFlash ($ flashName ) as $ message ) {
73+ echo Alert::widget (
74+ [
75+ 'body ' => $ header . $ message ,
76+ 'options ' => [
77+ 'class ' => 'alert alert- ' . $ alert ['class ' ],
78+ ],
79+ ]
80+ );
81+ }
8082 }
8183 }
8284 echo Html::endTag ('div ' );
You can’t perform that action at this time.
0 commit comments