Static Public Member Functions |
static | force ($filename= '', $data= '') |
| Force a download of a file to the user's browser.
|
Member Function Documentation
static download::force |
( |
|
$filename = '' , |
|
|
|
$data = '' |
|
) |
| |
|
static |
Force a download of a file to the user's browser.
This function is binary-safe and will work with any MIME type that Kohana is aware of.
- Parameters
-
string | a file path or file name |
mixed | data to be sent if the filename does not exist |
- Returns
- void
The documentation for this class was generated from the following file: