PEAR Manual
Prev |  | Next

# HTML_Template_IT::parse()

HTML_Template_IT::parse() -- parse a block

## Synopsis

    require_once 'HTML/Template/IT.php';

``void IntegratedTemplate::parse` ([string $block = "__global" [, boolean $flag_recursion = `FALSE`]])`

## Description

Parses the defined block.

## Parameter

- `string $block` - block to parse, when not set the complete template will be parsed.

- `boolean $flag_recursion` - can be ignored

## Throws

Table 41-1. Possible PEAR_Error values

Error code | Error message | Reason | Solution
--- | --- | --- | ---
`IT_BLOCK_NOT_FOUND` | " Cannot find this block `block` " | The given block does not exists. | Check for typing mistakes in the argument.

## Note

This function can not be called statically.

Prev | Home | Next
HTML_Template_IT::loadTemplatefile() | Up | HTML_Template_IT::parseCurrentBlock()