PHP Class skeeks\cms\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
Afficher le fichier Open project: skeeks-cms/cms

Méthodes publiques

Свойство 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.

Méthodes publiques

Méthode Description
init ( )

Method Details

init() public méthode

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