message like "throw new HttpException" but green

Hi people.

How do I send a message like a "throw new HttpException" but green color and same format to indicate that everything was OK?

Hi!

Look at: http://www.yiiframework.com/doc-2.0/guide-runtime-sessions-cookies.html#flash-data

"Flash Data" explains how to set messages for the user.

Regards

[size="3"]Hi MetaCrawler. Thanks for your answer.

It works correctly.

But I do not get the message with the desired appearance… like "throw new HttpException" but green.

In addition I lose the main layout.[/size]