HTML_Template_IT::setCurrentBlock()
Описание
Sets the name of the current block, where placeholder should be substituted. The current block can be parsed with HTML_Template_IT::parseCurrentTemplate().
Возвращаемое значение
boolean - TRUE, if found and succcessful set, otherwise IT_Error will be returned.
Throws
Таблица 43-1. Возможные значения PEAR_Error
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. |
Пред. | Начало | След. |
HTML_Template_IT::parseCurrentBlock() | Уровень выше | HTML_Template_IT::setRoot() |