HTML_Template_IT::show()

HTML_Template_IT::show() – print a block including replacments

Synopsis

require_once 'HTML/Template/IT.php';

void HTML_Template_IT::show ( string $block )

Description

This functions prints a block with all replacements done.

Parameter

  • string $block - The block to return. If not used, the whole template is returned.

Throws

Possible PEAR_Error values
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.

Note

This function can not be called statically.

set a variable (Previous) preserve empty block (Next)
Last updated: Sat, 16 Feb 2019 — Download Documentation
Do you think that something on this page is wrong? Please file a bug report.
View this page in:
  • English

User Notes:

Note by: sneakyimp AT hotmail DOT com
Is it necessary to call the parse method before calling the show method or is the parse method only necessary when looping over a single block some number of times? I am having trouble with my main template block showing twice when I call parse on the main block. The documentation here is really not very detailed.