download($filename = 'backup.zip')
Parameters: |
|
---|---|
Return type: |
void |
Causes the Zip file to be downloaded from your server. You must pass the name you would like the zip file called. Example:
$this->zip->download('latest_stuff.zip'); // File will be named "latest_stuff.zip"
Note
Do not display any data in the controller in which you call this method since it sends various server headers that cause the download to happen and the file to be treated as binary.
Please login to continue.