TwistPHP Documentation

extendLibrary

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

extendLibraryExtend the resource library with a whole new set of resources. This function can be called if you want to put some custom resources into the system that the site or package can use.
The resources will then become accessible via the {resource:} view tag.

Parameters

Name Type Description
$dirManifeststringn/a
$dirResourcePathstringn/a

Return Values

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

Example

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

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