setTemplate() -- Sets the template. ОписаниеSets the template. You can either load a template file from disk with loadTemplateFile() or set the template manually using this function. Параметр
- string
$template
template content
- boolean
$removeUnknownVariables
remove unknown/unused variables?
- boolean
$removeEmptyBlocks
remove empty blocks?
Возвращаемое значение
return SIGMA_OK on success, error object on failure
Throws
Таблица 27-1. Возможные значения PEAR_Error Error code | Error message | Reason | Solution |
---|
SIGMA_BLOCK_DUPLICATE | The name of a block must be unique within a template. Block 'blockname' found twice. | The $template contains two blocks sharing the same name | Check the $template and rename one of the the blocks to something else |
ЗаметкаЭта функция не должна вызываться статически.
|