PHP Класс app\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']);
Автор: Kartik Visweswaran ([email protected])
Автор: Alexander Makarov ([email protected])
Наследование: extends yii\bootstrap\Widget
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
$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.

Открытые методы

Метод Описание
init ( )

Описание методов

init() публичный метод

public init ( )

Описание свойств

$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)
public $alertTypes

$closeButton публичное свойство

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