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
파일 보기 프로젝트 열기: phundament/app 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$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