NYCPHP Meetup

NYPHP.org

[nycphp-talk] Array keys in Smarty

jon baer jonbaer at jonbaer.net
Thu Sep 18 07:53:46 EDT 2003


good question ...

have u tried something like passing in the keys before the template? ie:

$keys = array_keys($array);

{section name=x loop=$keys}
{$keys[x]}<br/>
{/section}

- jon

----- Original Message -----
From: "Nasir Zubair" <lists at ny-tech.net>
To: "'NYPHP Talk'" <talk at lists.nyphp.org>
Sent: Thursday, September 18, 2003 1:53 AM
Subject: [nycphp-talk] Array keys in Smarty


> Is it possible to access the keys of an associative array _in_ a template.
>
> - Nasir
>
> _______________________________________________
> talk mailing list
> talk at lists.nyphp.org
> http://lists.nyphp.org/mailman/listinfo/talk
>




More information about the talk mailing list