TwistPHP Documentation

viewExtension

File path: dist/twist/Core/Helpers/Asset.helper.php
Namespace: Twist\Core\Helpers
Extends: Base

viewExtensionExtends the default functionality of the View helper, adding the ability to output simple upload forms and asset information directly into a template
{asset:upload}
{asset:upload-html}
{asset:upload-init}
{asset:upload-js}
{asset:uri}
{asset:title}
{asset:description}
{asset:size_bytes}
{asset:size}
{asset:type}
{asset:group}
{asset:link}
{asset:inline,type}

Parameters

Name Type Description
$strReferencestringn/a
[$arrParameters = array()]arrayn/a

Return Values

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

Example

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

//Call the function viewExtension with the example vars
Twist::Asset() -> viewExtension($strReference$arrParameters);