TwistPHP Documentation

Resources

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

Type: Model

Resources — Core resource handler for the framework, output resources, App and Package JS and CSS files.

Example Usage

<?php
//Set the variables for the example
$strReference 'foo';
$arrParameters = array();

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

Method List

Method Access Returns
viewResourcepublicvoid
viewCSSpublicvoid
viewJSpublicvoid
viewImagepublicvoid
locateFileprotectedvoid
processJSprotectedvoid
processCSSprotectedvoid
loadLibraryManifestprotectedvoid
getFromLibraryprotectedvoid
applyPathprotectedvoid
extendLibrarypublicvoid
viewPlaceholderpublicvoid