Re: [SMARTY] [basic] help with a section / array

From: Date: Thu, 03 Jul 2003 13:47:52 +0000
Subject: Re: [SMARTY] [basic] help with a section / array
References: 1 2  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-9826@lists.php.net to get a copy of this message
That's it !! Thanks a lot Messju Luc At 15:12 03/07/2003 +0200, messju mohr wrote:
On Thu, Jul 03, 2003 at 01:57:32PM +0200, Luc Saint-Elie wrote: Hello, Sorry to upset with this basic stuff but I'm struggling with the correct section to display the following array. The array comes from a newsgroup messages listing, the first item is the messageid and the secondary array is the message data. section only works on zero-based, numeric array-keys and not on hash-arrays. use foreach: {foreach from=$data key=messageid item=message} {$messageid}/{$message.number}: {$message.Subject} {/foreach} HTH messju


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