home *** CD-ROM | disk | FTP | other *** search
/ Enter 2004 June / ENTER.ISO / files / xampp-win32-1.4.5-installer.exe / xampp / function.debug.php < prev    next >
Encoding:
PHP Script  |  2004-03-24  |  752 b   |  35 lines

  1. <?php
  2. /**
  3.  * Smarty plugin
  4.  * @package Smarty
  5.  * @subpackage plugins
  6.  */
  7.  
  8.  
  9. /**
  10.  * Smarty {debug} function plugin
  11.  *
  12.  * Type:     function<br>
  13.  * Name:     debug<br>
  14.  * Date:     July 1, 2002<br>
  15.  * Purpose:  popup debug window
  16.  * @link http://smarty.php.net/manual/en/language.function.debug.php {debug}
  17.  *       (Smarty online manual)
  18.  * @author     Monte Ohrt <monte@ispi.net>
  19.  * @version  1.0
  20.  * @param array
  21.  * @param Smarty
  22.  * @return string output from {@link Smarty::_generate_debug_output()}
  23.  */
  24. function smarty_function_debug($params, &$smarty)
  25. {
  26.     if($params['output']) {
  27.         $smarty->assign('_smarty_debug_output',$params['output']);
  28.     }
  29.     return $smarty->_generate_debug_output();
  30. }
  31.  
  32. /* vim: set expandtab: */
  33.  
  34. ?>
  35.