Sorry for the types in my last post.
The Comment part should be:
{section name=val loop=$data.Comment}
{$data[val].Comment.???.body}// HERE!!
{/section}
Thanks for your reply, Tarique.
I am curious as to how foreach would access to keys(e.g. [0],[1],[2])
in a multi-dimensional associative arrays.
The following code only retrieves a key of 0.
How do you retrieve each key?
{foreach from=$data item=val}
{$val.Comment.0.body}
{/foreach}
On 3ζ10ζ₯, εεΎ5:56, "Dr. Tarique Sani" <[EMAIL PROTECTED]> wrote:
> On 3/10/07, Kyo <[EMAIL PROTECTED]> wrote:
>
> > {section name=val loop=$data.FileUpload}
> > {$data[val].Comment.???.body} // HERE!!
> > {/section}
>
> Its been a while since I worked withsmartybut try using the
> {foreach} syntax instead of {section}
>
> HTH
> Tarique
>
> --
> =============================================================
> PHP for E-Biz:http://sanisoft.com
> Cheesecake-Photoblog:http://cheesecake-photoblog.org
> =============================================================
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---