section sum of numbers...

From: Date: Wed, 20 Jul 2005 18:54:15 +0000
Subject: section sum of numbers...
Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-12815@lists.php.net to get a copy of this message
Hello, Is there a way to find out the SUM of the numbers from the template ? ------------- {section name=i loop=$items}   <tr>     <td>{$items[i].name}</td>     <td>{$items[i].price}</td>   </tr> {/section} There items: {$smarty.section.i.total} Total price: {$smarty ??? } ------------- <tr> <td>Joe</td> <td>2.00</td> </tr> <tr> <td>Steve</td> <td>5.00</td> </tr> There items: 2 Total price: 7.00 ------------- Thanks, Andras Kende http://www.kende.com/

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