HTML_Template_IT::parseCurrentBlock() | HTML_Template_IT::setRoot() |
HTML_Template_IT | |
PEAR Manual | |
require_once 'HTML/Template/IT.php'; |
boolean
HTML_Template_IT::setCurrentBlock (
string
$block = "__global__"
)
Sets the name of the current block, where placeholder should be substituted. The current block can be parsed with HTML_Template_IT::parseCurrentTemplate().
string $block - block to set, if not given, the complete template is set
boolean - TRUE, if found and succcessful set, otherwise IT_Error will be returned.
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. |
This function can not be called statically.
HTML_Template_IT::parseCurrentBlock() | HTML_Template_IT::setRoot() |
HTML_Template_IT | |
PEAR Manual | |