Helping ordinary people create extraordinary websites!


HTML_Template_IT::loadTemplatefile()

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

Description

Loads a template from a file and generates internal lists for blocks and variables.

Parameter

  • string $filename - file to load

  • boolean $removeUnknownVariables - if TRUE, not substituted placeholders in a block will be removed

  • boolean $removeEmptyBlocks - if TRUE, not touched blocks will be removed. Blocks can be touched with HTML_Template_IT::touchBlock().

Return value

boolean - Returns TRUE on success, FALSE on failure.

Note

This function can not be called statically.