| HTML_Template_IT::setTemplate() | HTML_Template_IT::show() |
| HTML_Template_IT | |
| PEAR Manual | |
require_once 'HTML/Template/IT.php';
|
void
HTML_Template_IT::setVariable (
mixed
$placeholder
, mixed
$variable = ""
)
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.
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.
Template - cvsnames.tpl.htm
<html>
<table>
<!-- BEGIN row -->
<tr>
<td>
{CVS_USERNAME}
</td>
<td>
{REALNAME}
</td>
<td>
<ul>
<!-- BEGIN project_row -->
<li>{PROJECT}</li>
<!-- END project_row -->
</ul>
</td>
</tr>
<!-- END row -->
</table>
</html>
|
Script
|
This function can not be called statically.
| HTML_Template_IT::setTemplate() | HTML_Template_IT::show() |
| HTML_Template_IT | |
| PEAR Manual | |