Re: [SMARTY] {section} problem with filter
| From: | Alex | Date: | Fri, 17 Jan 2003 09:48:52 +0000 |
| Subject: | Re: [SMARTY] {section} problem with filter | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-7247@lists.php.net to get a copy of this message | ||
> I have an array that I set in PHP
> I filter this array with array_filter
> I display this array in Smarty, ---> But it is not displayed properly.
> The problem I think comes from the fact that that when I filter the array, some elements have
> been
> deleted, and so for exemple I may have $array[0] and $array[2], but $array[1] would have been
> deleted.
> Smarty will then display only $array[0] and stop after that...
You can use {debug} for track arrays content
and use
{foreach} {/foreach}
instead of
{section} {/section}
Alex.