yiisoft/yii2 — pull request #4740 by restyler (2014-08-18 10:54:28+00:00)
Title: Multiple flash messages per type support

Basic support for multiple flash messages per type, as per discussion
https://github.com/yiisoft/yii2/pull/1250#issuecomment-52454763

Tested in advanced and basic app use cases.

It turned out that advanced template alert widget already works fine with array of messages.

The approach used in basic app:
```
Yii::$app->session->setFlash('contactFormSubmitted');
```
is also not broken.

The remove-after-access and remove-on-the-next page logic should work fine but I did not test it thoroughly.