RE: smarty.section.sectionname.varname variables
| From: | Andrei Zmievski | Date: | Wed, 20 Feb 2002 22:14:00 +0000 |
| Subject: | RE: smarty.section.sectionname.varname variables | ||
| References: | 1 2 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-2799@lists.php.net to get a copy of this message | ||
On Wed, 20 Feb 2002, Steve wrote:
> I use that all the time. I'd like to display the number of objects in array
> $list in my template. The debug console doesn't display any $smarty[]
> variables - at least mine doesn't. Has debug.tpl changed recently?
If you are looping through $list, you can use
$smarty.section.sectionname.total to find out the total. Alternatively
you can use {$list|@count} to display the total.
-Andrei
* Software never has bugs. It just develops random features. *