Re: Stupid array question : precision
| From: | Mike Krus | Date: | Sat, 18 Aug 2001 16:11:58 +0000 |
| Subject: | Re: Stupid array question : precision | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-1358@lists.php.net to get a copy of this message | ||
Luc Saint-Elie wrote:
{section name=data loop=$article_corps} {$article_corps[data.index].paragraph_id} {$article_corps[data.index].paragraph_title} {$article_corps[data.index].paragraph_chapo} {$article_corps[data.index].paragraph_text} {/section} shouldn't it be:{section name=data loop=$article_corps} {$article_corps[data].paragraph_id} {$article_corps[data].paragraph_title} {$article_corps[data].paragraph_chapo} {$article_corps[data].paragraph_text} {/section} the 'data.index' syntax is to print the index value... Mike