Re: Re[2]: [SMARTY] Am I being daft? Arrays...
| From: | John Wards | Date: | Mon, 07 Apr 2003 16:58:50 +0000 |
| Subject: | Re: Re[2]: [SMARTY] Am I being daft? Arrays... | ||
| References: | 1 2 3 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-9173@lists.php.net to get a copy of this message | ||
On Monday 07 Apr 2003 4:41 pm, Katana wrote:
> JW> The {arrrrgh} bit was a joke...
>
> :)
>
> JW> I want to get the value for [story].
> JW> Would $smarty.section.story_stid.index Do it?
> Did you try ? :)
> All you need is on the documentation
The problem was that I was using sections on an array that didn't have keys
0,1,2,3
My keys went 3,6,2,8 etc
So I should have been using foreach. Which I am now and its all working
great...
Cheers
John