TwistPHP Documentation

secureAppFolder

File path: dist/twist/Core/Models/Install.model.php
Namespace: Twist\Core\Models
Extends:

secureAppFolderSecure the APP folder by placing .htaccess files in the correct locations. These files will block access to all apart from Resources and Assets.

Parameters

Name Type Description
$dirAppFolderstringn/a

Return Values

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

Example

<?php
//Set the variables for the example
$dirAppFolder '/home/user/public_html/twist';

//Call the function secureAppFolder with the example vars
\Twist\Core\Models\Install::secureAppFolder($dirAppFolder);