TwistPHP Documentation

replaceTag

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

replaceTagReplace the tag in the View data with the provided content

Parameters

Name Type Description
$strRawViewstringn/a
$strTagstringn/a
$strDatastringn/a
[$strFunction = null]stringn/a
[$mxdRawData = array()]mixedn/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
$strRawView 'foo';
$strTag 'foo';
$strData 'foo';
$strFunction null;
$mxdRawData = array();
$arrParameters = array();

//Call the function replaceTag with the example vars
Twist::View() -> replaceTag($strRawView$strTag$strData$strFunction$mxdRawData$arrParameters);