File path: dist/twist/Core/Models/Resources.model.php
Namespace: Twist\Core\Models
extendLibrary
— Extend 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.
Name | Description |
---|---|
$dirManifest | n/a |
$dirResourcePath | n/a |
void — No return information has been documented for this function.
<?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);