TwistPHP Documentation

applyPath

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

applyPathApply the correct URI to a resource based on its resource directory path.

Parameters

Name Type Description
$arrParametersarrayn/a
$dirResourcePathstringn/a

Return Values

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

Example

<?php
//Set the variables for the example
$arrParameters = array(=> 'foo'=> 'bar');
$dirResourcePath '/home/user/public_html/twist';

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