| HTML_Template_IT::loadTemplatefile() (Previous) | (Next) HTML_Template_IT::parseCurrentBlock() | ||||
| |
|||||
|
|||||
Parses the defined block, performs all substitutions and appends the result to already parsed blocks.
string $block - block to parse. When not set the complete template is used.
boolean $flag_recursion - Used internally. Can be ignored
boolean - Returns TRUE if there was no placeholder to substitute, otherwise FALSE or IT_Error.
Példa 43-1. The template cvsnames.tpl.htm
|
Példa 43-2. The script
|
Táblázat 43-1. Lehetséges PEAR_Error visszatérési értékek
| 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::loadTemplatefile() (Previous) | (Next) HTML_Template_IT::parseCurrentBlock() | ||||||||
| |
|||||||||
|
|||||||||