Re: [SMARTY] {section} -> {foreach}

From: Date: Wed, 02 Mar 2005 16:42:37 +0000
Subject: Re: [SMARTY] {section} -> {foreach}
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-12288@lists.php.net to get a copy of this message
Robert writes: > How do I convert this to a {foreach}? Off the top of my head: {foreach from=$pageData.data item=item} <tr class="{cycle values="trcol1,trcol2"}"> <td>{$item.SURNAME}</td> <td>{$item.FIRST_NAME}</td> <td>{$item.USERID}</td> <td>{$item.PROFILE}</td> <td>{$item.POSITION}</td> {if $item.PRIMARY eq 1} <td>No</td> {elseif $item.PRIMARY eq "0"} <td>Yes</td> {else} <td>&nbsp;</td> {/if} </tr> {/foreach} -- Mark Rogers, More Solutions Ltd

« previous php.smarty.general (#12288) next »