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