Re: [SMARTY] var_dump($smarty)

From: Date: Tue, 13 Aug 2002 15:17:42 +0000
Subject: Re: [SMARTY] var_dump($smarty)
References: 1 2  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-5678@lists.php.net to get a copy of this message
> From: "Mark Rogers" <mark@quarella.co.uk> > To: <smarty-general@lists.php.net> > Date: Tue, 13 Aug 2002 16:06:55 +0100 > Subject: [SMARTY] var_dump($smarty) should have gone to the list. > Is there any way, from within a template, that I can dump the contents > of the $smarty reserved variable? sure. function smarty_function_dump_smarty($params, &$smarty) { ob_start(); var_dump($smarty); $ob = ob_get_contents(); ob_end_clean(); return "<pre>$ob</pre>"; } drop this in your plugins dir. -- FreeBSD 4.6-STABLE 5:12PM up 4 days, 5:07, 14 users, load averages: 0.02, 0.03, 0.01

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