TwistPHP Documentation

serve

File path: dist/twist/Core/Utilities/Archive.utility.php
Namespace: Twist\Core\Utilities
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);