5 * @subpackage plugins
\r
10 * Smarty {debug} function plugin
\r
12 * Type: function<br>
\r
14 * Date: July 1, 2002<br>
\r
15 * Purpose: popup debug window
\r
16 * @link http://smarty.php.net/manual/en/language.function.debug.php {debug}
\r
17 * (Smarty online manual)
\r
18 * @author Monte Ohrt <monte@ispi.net>
\r
22 * @return string output from {@link Smarty::_generate_debug_output()}
\r
24 function smarty_function_debug($params, &$smarty)
\r
26 if($params['output']) {
\r
27 $smarty->assign('_smarty_debug_output',$params['output']);
\r
29 require_once(SMARTY_DIR . 'core' . DIRECTORY_SEPARATOR . 'core.display_debug_console.php');
\r
30 return smarty_core_display_debug_console(null, $smarty);
\r
33 /* vim: set expandtab: */
\r