TwistPHP Documentation

serve

File path: dist/twist/Core/Helpers/Archive.helper.php
Namespace: Twist\Core\Helpers
Extends: Base

serveServe the newly created archive to the browser, this will allow the user to download the Archive to there computer
Temp files are deleted upon serve

Parameters

Name Type Description
[$strFileName = null]stringn/a

Return Values

void — No return information has been documented for this function.

Example

<?php
//Set the variables for the example
$strFileName null;

//Call the function serve with the example vars
Twist::Archive() -> serve($strFileName);