TwistPHP Documentation


File path: dist/twist/Core/Utilities/Route.utility.php
Namespace: Twist\Core\Utilities
Extends: Base

folderServe all contents of a folder on a virtual route, the folder begin served dose not need to be publicly accessible,
also restriction can be applied to the virtual route if user login is required to access.


Name Type Description
[$blForceDownload = false]booleann/a
[$intLimitDownloadSpeed = null]integern/a

Return Values

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


//Set the variables for the example
$strURI 'foo';
$dirFolderPath '/home/user/public_html/twist';
$blForceDownload false;
$intLimitDownloadSpeed null;

//Call the function folder with the example vars
Twist::Route() -> folder($strURI$dirFolderPath$blForceDownload$intLimitDownloadSpeed);