TwistPHP Documentation


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

viewPlaceholderGet the URI for a placeholder image, the placeholder image can be generated in an range of sizes and colors.
The image contains some basic information about the site and its size, you must have the Placeholder controller/route registered to use this functionality.
Parameters can be included in the tag, you can use a single or combination of parameters (some examples below):
width = 400
Output width of the image placeholder
height = 300
Output height of the image placeholder
background-color = #999999
Background colour of the image placeholder
color = #ffffff
line and font color used on the image placeholder
An example of the tag with all the above parameters in use {placeholder:'Banner Image',width=400,height=300,background-color='#999999',color='#ffffff'}


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

Return Values

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


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

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