AW: [SMARTY] finding array members
| From: | Wojciech Duda | Date: | Thu, 06 Apr 2006 14:43:21 +0000 |
| Subject: | AW: [SMARTY] finding array members | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-13390@lists.php.net to get a copy of this message | ||
Hello,
Yes there is, kinda like the second example you made:
http://smarty.php.net/manual/en/language.function.foreach.php
HTH
-----Ursprüngliche Nachricht-----
Von: d3ntaku@gmail.com [mailto:d3ntaku@gmail.com] Im Auftrag von D_C
Gesendet: Thursday, 06 April 2006 4:34
An: Smarty
Betreff: [SMARTY] finding array members
i am working on a smarty template with some passed in arrays from
another programmer.
is there a way in smarty of walking through the array to find out the
index names etc?
eg in the .tpl
{$array[0].key}
or
{foreach item=fitem key=fkey from=$titem}
{$fkey}
thanks!
--
_______________________________________________
David "DC" Collier
US 1-415-283-7742
dc@pikkle.com
skype: callto://d3ntaku
http://www.pikkle.com
+81 (0)80 6521 9559
http://charajam.com 【★キャラ♪ジャム★】
人気キャラとJ-POP最新ヒット曲を自分で組み合わせて
待受Flashや着Flashを作っちゃおう!
_______________________________________________
--
Smarty General Mailing List (http://smarty.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php