File path: dist/twist/Core/Utilities/Route.utility.php
Namespace: Twist\Core\Utilities
Extends: Base
folder
— Serve 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 | Description |
---|---|
$strURI | n/a |
$dirFolderPath | n/a |
[$blForceDownload = false] | n/a |
[$intLimitDownloadSpeed = null] | n/a |
void — No return information has been documented for this function.
<?php
//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);