PHP Class store\widgets\Alert

php \Yii::$app->getSession()->setFlash('error', 'This is the message'); \Yii::$app->getSession()->setFlash('success', 'This is the message'); \Yii::$app->getSession()->setFlash('info', 'This is the message'); Multiple messages could be set as follows: php \Yii::$app->getSession()->setFlash('error', ['Error 1', 'Error 2']);
Author: Kartik Visweswaran ([email protected])
Author: Alexander Makarov ([email protected])
Inheritance: extends yii\bootstrap\Widget
显示文件 Open project: daixianceng/xiaoego.com Class Usage Examples

Public Properties

Property Type Description
$alertTypes the alert types configuration for the flash messages. This array is setup as $key => $value, where: - $key is the name of the session flash variable - $value is the bootstrap alert type (i.e. danger, success, info, warning)
$closeButton the options for rendering the close button tag.

Public Methods

Method Description
init ( )

Method Details

init() public method

public init ( )

Property Details

$alertTypes public_oe property

the alert types configuration for the flash messages. This array is setup as $key => $value, where: - $key is the name of the session flash variable - $value is the bootstrap alert type (i.e. danger, success, info, warning)
public $alertTypes

$closeButton public_oe property

the options for rendering the close button tag.
public $closeButton