| HTML_Template_IT::setOption() | HTML_Template_IT::setVariable() |
| HTML_Template_IT | |
| PEAR Manual | |
require_once 'HTML/Template/IT.php';
|
boolean
HTML_Template_IT::setTemplate (
string $template
, boolean
$removeUnkownVariables = TRUE
, boolean
$removeEmptyBlocks = TRUE
)
Loads template from a string and controls the behavior in case of unused variables and blocks
string $template - The content of the template.
boolean $removeUnknowVariables - if TRUE, not substituted placeholders in a block will be removed
boolean $removeEmptyBlocks - if TRUE, not touched blocks will be removed
boolean - Returns TRUE on success, FALSE on failure.
Script
|
This function can not be called statically.
| HTML_Template_IT::setOption() | HTML_Template_IT::setVariable() |
| HTML_Template_IT | |
| PEAR Manual | |