[prev in list] [next in list] [prev in thread] [next in thread] 

List:       smarty-general
Subject:    [smarty] loop
From:       Ivo Jansch <ivo () ibuildings ! nl>
Date:       2001-03-27 13:09:39
[Download RAW message or body]

Hi,

why doesn't this work:

index.php:

$smarty->assign("list",Array("names"=>Array("sjappie","flappie","happie")));

index.tpl:

<ul>
{section name="sec1" loop=$list.names}
<li>{$sec1/list.names}
{/section}
</ul>

I can see the bullets, but no names.. 

-- 
Ivo Jansch <ivo@ibuildings.nl>
ibuildings.nl BV - information technology
http://www.ibuildings.nl

---
You are currently subscribed to smarty as: smarty@progressive-comp.com
To unsubscribe send a blank email to leave-smarty-700385W@lists.ispi.net
Visit Smarty's homepage at http://www.phpinsider.com/php/code/Smarty/

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic