PHP Class common\components\Controller

Inheritance: extends yii\web\Controller
Mostra file Open project: iiyii/getyii Class Usage Examples

Public Methods

Method 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 method

public afterAction ( $action, $result )

beforeAction() public method

public beforeAction ( $action )

behaviors() public method

public behaviors ( )

flash() public method

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

message() public method

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 信息显示格式
return array | string