PEAR Manual
Prev |  | Next

# HTML_Template_IT::setVariable()

HTML_Template_IT::setVariable() -- set a variable

## Synopsis

    require_once 'HTML/Template/IT.php';

``void IntegratedTemplate::setVariable` (mixed $placeholder [, mixed $variable = ""])`

## Description

Set the value of a variable in the current template block

## 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.

Prev | Home | Next
HTML_Template_IT::setTemplate() | Up | HTML_Template_IT::show()