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

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

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

revision 1.1 by cvsjoko, Wed Oct 9 00:53:36 2002 UTC revision 1.2 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:     assign_debug_info   */
7   * Purpose:  assign debug info to the template  
8   * -------------------------------------------------------------  /**
9     * Smarty {assign_debug_info} function plugin
10     *
11     * Type:     function<br>
12     * Name:     assign_debug_info<br>
13     * Purpose:  assign debug info to the template<br>
14     * @param array unused in this plugin, this plugin uses {@link Smarty::$_config},
15     *              {@link Smarty::$_tpl_vars} and {@link Smarty::$_smarty_debug_info}
16     * @param Smarty
17   */   */
18  function smarty_function_assign_debug_info($params, &$smarty)  function smarty_function_assign_debug_info($params, &$smarty)
19  {  {
# Line 17  function smarty_function_assign_debug_in Line 24  function smarty_function_assign_debug_in
24          ksort($config_vars);          ksort($config_vars);
25          $smarty->assign("_debug_config_keys", array_keys($config_vars));          $smarty->assign("_debug_config_keys", array_keys($config_vars));
26          $smarty->assign("_debug_config_vals", array_values($config_vars));          $smarty->assign("_debug_config_vals", array_values($config_vars));
27      }        }
28            
29      $included_templates = $smarty->_smarty_debug_info;      $included_templates = $smarty->_smarty_debug_info;
30            

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

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