extension to modifier.debug_print_var

From: Date: Thu, 21 Mar 2002 15:19:50 +0000
Subject: extension to modifier.debug_print_var
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-3195@lists.php.net to get a copy of this message
Hi all! The debuginfo does not contail info about objects, so I added the following lines: elseif (is_object($var)) { $results = "<b>".get_class($var)." object</b>"; $props = get_object_vars ($var); foreach ($props as $curr_key => $curr_val) { $return = smarty_modifier_debug_print_var($curr_val, $depth+1); $results .= '<br>\r'.str_repeat('&nbsp;', $depth*2)."<i>$curr_key</i> =&gt; $return"; } return $results; } Perhaps it's not a bad idea to take it in the next release!?! Rainer

« previous php.smarty.general (#3195) next »