debug
debug
function displays the debug console either to a popup window through javascript or appends the console to the end of the template file being displayed. This works regardless of the debugging setting. Since this gets executed at runtime it will only display the assigned variables for the template file being processed.
EXAMPLE ============================= {* Display Debug Console as javascript popup window *} { debug } {* Append Debug Console to the end of the displayed page as HTML *} {debug output=html}
tplheader
EXAMPLE PHP CODE INSERTED ============================= echo '" . $tpl->_file . " compiled at " . date('Y-m-d H:M'). "'; EXAMPLE DISPLAY ============================= mytemplate.tpl compiled at 2006-04-14 10:34