Re: [SMARTY] How to assign associate array into the template in the nested sections?
| From: | Monte Ohrt | Date: | Thu, 09 May 2002 14:10:24 +0000 |
| Subject: | Re: [SMARTY] How to assign associate array into the template in the nested sections? | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-4120@lists.php.net to get a copy of this message | ||
Try this in your inner loop:
{section name=fid loop=$member[id].fields}
Pao-Hsi Huang wrote:
For my example ( don't work ), {section name=id loop=$member} {section name=fid loop=$fields} {$member[id].$fields[fid]} <br> {/section} <p> {/section} I have a member's data array $member[], each row has its own associate array such as $member[0]['username']. But I can't put this into templates in the nested sections and always display error message. Does anyone know how to solved this problem? Thanks! Best regards, Pao-Hsi Huang-- Monte Ohrt <monte@ispi.net> Director of Technology, ispi Inc.