HTML_Template_IT::getGlobalvariables() (Previous) (Next) HTML_Template_IT::parse()

View this page in Last updated: Mon, 02 Jul 2007
English | Dutch | French | German | Hungarian | Japanese | Polish | Russian | Spanish | Plain HTML

HTML_Template_IT::loadTemplatefile()

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

Opis

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

Parametr

  • 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().

Zwracana wartość

boolean - Zwraca TRUE w przypadku powodzenia, FALSE w przypadku niepowodzenia.

Uwagi

Ta funkcja nie może być wywołana statycznie.

HTML_Template_IT::getGlobalvariables() (Previous) (Next) HTML_Template_IT::parse()

Download Documentation Last updated: Mon, 02 Jul 2007
Do you think that something on this page is wrong? Please file a bug report or add a note.
User Notes:
Note by: pierre2543@hotmail.com
It is possible to do file includes when calling loadTemplatefile.

File sample.tlp:
<html>
<body>
<!-- INCLUDE include.inc -->
</body>
</html>

File include.inc:
<h1>foo</h1>

Calling:
$it->loadTemplatefile('sample.tpl');

Result:
<html>
<body>
<h1>foo</h1>
</body>
</html>

------------------------
Louis-Pierre Charbonneau