DownloadResponse
extends Response
in package
Prompts the user to download the a file
Tags
Table of Contents
Methods
- __construct() : mixed
- Creates a response that prompts the user to download the file
Methods
__construct()
Creates a response that prompts the user to download the file
public
__construct(string $filename, C $contentType[, S $status = Http::STATUS_OK ][, H $headers = [] ]) : mixed
Parameters
- $filename : string
-
the name that the downloaded file should have
- $contentType : C
-
the mimetype that the downloaded file should have
- $status : S = Http::STATUS_OK
- $headers : H = []