PEAR Manual
Prev |  | Next

# HTML_Template_IT::loadTemplatefile()

HTML_Template_IT::loadTemplatefile() -- load a template file

## Synopsis

    require_once 'HTML/Template/IT.php';

``boolean IntegratedTemplate::loadTemplatefile` (string $filename, boolean [$removeUnknownVariables = `TRUE`], boolean [$removeEmptyBlocks = `TRUE`])`

## Description

Loads a template from a file

## Parameter

- `string $filename` - file to load

- `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::setTemplate()

Prev | Home | Next
HTML_Template_IT::HTML_Template_IT() | Up | HTML_Template_IT::parse()