RE: smarty.section.sectionname.varname variables

From: Date: Wed, 20 Feb 2002 22:20:50 +0000
Subject: RE: smarty.section.sectionname.varname variables
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-2800@lists.php.net to get a copy of this message
Thank you for that answer. That has begat another question: Is there a list of all of the section properties somewhere? For my own reference? Thanks, Steve -----Original Message----- From: Andrei Zmievski [mailto:andrei@ispi.net] Sent: Wednesday, February 20, 2002 2:14 PM To: Steve Cc: smarty@lists.ispi.net Subject: Re: [smarty] RE: smarty.section.sectionname.varname variables 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. *

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