/[cvs]/nfo/php/libs/net.php.smarty/plugins/function.debug.php
ViewVC logotype

Diff of /nfo/php/libs/net.php.smarty/plugins/function.debug.php

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.2 by joko, Thu Dec 19 16:40:20 2002 UTC revision 1.3 by joko, Wed Jun 16 21:58:16 2004 UTC
# Line 1  Line 1 
1  <?php  <?php
2    /**
 /*  
3   * Smarty plugin   * Smarty plugin
4   * -------------------------------------------------------------   * @package Smarty
5   * Type:     function   * @subpackage plugins
6   * Name:     debug   */
7   * Version:  1.0  
8   * Date:     July 1, 2002  
9   * Author:       Monte Ohrt <monte@ispi.net>  /**
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   * 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)  function smarty_function_debug($params, &$smarty)
25  {  {
26          if($params['output']) {      if($params['output']) {
27                  $smarty->assign('_smarty_debug_output',$params['output']);          $smarty->assign('_smarty_debug_output',$params['output']);
28          }      }
29          echo $smarty->_generate_debug_output();      require_once(SMARTY_DIR . 'core' . DIRECTORY_SEPARATOR . 'core.display_debug_console.php');
30        return smarty_core_display_debug_console(null, $smarty);
31  }  }
32    
33  /* vim: set expandtab: */  /* vim: set expandtab: */

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

MailToCvsAdmin">MailToCvsAdmin
ViewVC Help
Powered by ViewVC 1.1.26 RSS 2.0 feed