web\Session $count

$count public read-only property The number of session variables public integer getCount ( )

web\Session $cookieParams

$cookieParams public property The session cookie parameters. public array getCookieParams ( )public void setCookieParams ( array $value )

web\Session $allFlashes

$allFlashes public read-only property Flash messages (key => message or key => [message1, message2]). public array getAllFlashes ( $delete = false )

web\ServerErrorHttpException __construct()

__construct() public method Constructor. public void __construct ( $message = null, $code = 0, Exception $previous = null )$message string Error message $code integer Error code $previous Exception The previous exception used for the exception chaining.

web\ResponseFormatterInterface format()

format() public abstract method Formats the specified response. public abstract void format ( $response )$response yii\web\Response The response to be formatted.

web\Response xSendFile()

xSendFile() public method Sends existing file to a browser as a download using x-sendfile. X-Sendfile is a feature allowing a web application to redirect the request for a file to the webserver that in turn processes the request, this way eliminating the need to perform tasks like reading the file and sending it to the user. When dealing with a lot of files (or very big files) this can lead to a great increase in performance as the web application is allowed to terminate earlier while the w

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.

web\Response setDownloadHeaders()

setDownloadHeaders() public method Sets a default set of HTTP headers for file downloading purpose. public $this setDownloadHeaders ( $attachmentName, $mimeType = null, $inline = false, $contentLength = null )$attachmentName string The attachment file name $mimeType string The MIME type for the response. If null, Content-Type header will NOT be set. $inline boolean Whether the browser should open the file within the browser window. Defaults to false, meaning a download dialog will po

web\Response sendStreamAsFile()

sendStreamAsFile() public method Sends the specified stream as a file to the browser. Note that this method only prepares the response for file sending. The file is not sent until send() is called explicitly or implicitly. The latter is done after you return from a controller action. See also sendFile() for an example implementation. public $this sendStreamAsFile ( $handle, $attachmentName, $options = [] )$handle resource The handle of the stream to be sent. $attachmentName string The

web\Response sendHeaders()

sendHeaders() protected method Sends the response headers to the client protected void sendHeaders ( )