PEAR Manual
Prev |  | Next

# HTML_Template_IT::setTemplate()

HTML_Template_IT::setTemplate() -- set a template

## Synopsis

    require_once 'HTML/Template/IT.php';

``boolean IntegratedTemplate::setTemplate` (string $template [, boolean $removeUnkownVariables = `TRUE` [, boolean $removeEmptyBlocks = `TRUE`]])`

## Description

Sets the template and controls the behavior in case of unused variables and blocks

## Parameter

- `string $template` - template

- `boolean $removeUnknowVariables` - if `TRUE`, not substituted placeholders in a block will be removed

- `boolean $removeEmptyBlocks` - if `TRUE`, not touched blocks will be removed

## Return value

`boolean` - Returns `TRUE` on success, `FALSE` on failure.

## Note

This function can not be called statically.

## See

HTML_Template_IT::setTemplatefile()

Prev | Home | Next
HTML_Template_IT::setRoot() | Up | HTML_Template_IT::setVariable()