PHP Class common\components\Controller

Inheritance: extends yii\web\Controller
Afficher le fichier Open project: iiyii/getyii Class Usage Examples

Méthodes publiques

Méthode Description
afterAction ( $action, $result )
beforeAction ( $action )
behaviors ( )
flash ( $message, string $type = 'info', null $url = null ) : Response 显示flash信息
message ( $message, string $type = 'info', null $redirect = null, null $resultType = null ) : array | string

Method Details

afterAction() public méthode

public afterAction ( $action, $result )

beforeAction() public méthode

public beforeAction ( $action )

behaviors() public méthode

public behaviors ( )

flash() public méthode

显示flash信息
public flash ( $message, string $type = 'info', null $url = null ) : Response
$message string 信息显示内容
$type string 信息显示类型, ['info', 'success', 'error', 'warning']
$url null 跳转地址
Résultat yii\web\Response

message() public méthode

public message ( $message, string $type = 'info', null $redirect = null, null $resultType = null ) : array | string
$message string 信息显示内容
$type string 信息显示类型, ['info', 'success', 'error', 'warning']
$redirect null 跳转地址
$resultType null 信息显示格式
Résultat array | string