3 * Smarty Internal Plugin Compile Debug
5 * Compiles the {debug} tag.
6 * It opens a window the the Smarty Debugging Console.
14 * Smarty Internal Plugin Compile Debug Class
17 * @subpackage Compiler
19 class Smarty_Internal_Compile_Debug extends Smarty_Internal_CompileBase {
22 * Compiles code for the {debug} tag
24 * @param array $args array with attributes from parser
25 * @param object $compiler compiler object
26 * @return string compiled code
28 public function compile($args, $compiler)
30 // check and get attributes
31 $_attr = $this->getAttributes($compiler, $args);
33 // compile always as nocache
34 $compiler->tag_nocache = true;
36 // display debug template
37 $_output = "<?php \$_smarty_tpl->smarty->loadPlugin('Smarty_Internal_Debug'); Smarty_Internal_Debug::display_debug(\$_smarty_tpl); ?>";