web\Response setStatusCode()

setStatusCode() public method

Sets the response status code.

This method will set the corresponding status text if $text is null.

public void setStatusCode ( $value, $text = null )
$value integer

The status code

$text string

The status text. If not set, it will be set automatically based on the status code.

throws yii\base\InvalidParamException

if the status code is invalid.

doc_Yii
2016-10-30 17:16:25
Comments
Leave a Comment

Please login to continue.