Helping ordinary people create extraordinary websites!


HTML_Template_IT::setVariable()

HTML_Template_IT::setVariable() -- set a variable

Description

Set the value of a variable in the current template block. If $placeholder is an array, the key of an element is treated as a placeholder name while the value is treated as its substitution.

Parameter

  • mixed $placeholder - name of the placeholder to substitute or a array with the placeholder as key and the data to assign as value.

  • mixed $variable - if $placeholder is not a array, the value to assign to the placeholder.

Note

This function can not be called statically.