TwistPHP Documentation


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

locateFileLocate the resource file by its path, can be app/, packages/, twist/ or any path in the document root.
If requesting a file in either twist or packages it can be over-ridden by placing a corresponding file in the apps folder, for example:
[packages/Lavish/Resources/css/base.css] is over-ridden by [app/Packages/Lavish/Resources/css/base.css]
[twist/Core/Resources/ajax/twistajax.js] is over-ridden by [app/Twist/Core/Resources/ajax/twistajax.js]
To allow these overrides you must place a .htaccess file containing "Allow from all" in "app/Twist/Core/Resources/" or "app/Packages/Lavish/Resources/"


Name Type Description

Return Values

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


//Set the variables for the example
$dirPath '/home/user/public_html/twist';

//Call the function locateFile with the example vars
$resResources = new \Twist\Core\Models\Resources();
$resResources -> locateFile($dirPath);