1 |
<?php |
2 |
|
3 |
/* |
4 |
* Smarty plugin |
5 |
* ------------------------------------------------------------- |
6 |
* Type: function |
7 |
* Name: debug |
8 |
* Version: 1.0 |
9 |
* Date: July 1, 2002 |
10 |
* Author: Monte Ohrt <monte@ispi.net> |
11 |
* Purpose: popup debug window |
12 |
* ------------------------------------------------------------- |
13 |
*/ |
14 |
function smarty_function_debug($params, &$smarty) |
15 |
{ |
16 |
if($params['output']) { |
17 |
$smarty->assign('_smarty_debug_output',$params['output']); |
18 |
} |
19 |
echo $smarty->_generate_debug_output(); |
20 |
} |
21 |
|
22 |
/* vim: set expandtab: */ |
23 |
|
24 |
?> |