[prev in list] [next in list] [prev in thread] [next in thread]
List: smarty-general
Subject: Re: [SMARTY] How can one create a table dynamically with Smarty ?
From: Gabriel Birke <birke () kontor4 ! de>
Date: 2004-04-30 13:41:30
Message-ID: 16768766-9AAC-11D8-8E9C-003065FA313E () kontor4 ! de
[Download RAW message or body]
Haven't tested this but it should give you the general idea on how to
accomplish a table:
<table>
{section loop=$data name=i}
<tr><td>{$data[i].image}</td><td>{$data[i].description}</td></tr>
{/section}
</table>
With best regards
Gabriel Birke
--
KONTOR4_Neue Medien
Plathnerstraße 5
30175 Hannover
Fax: +49 51184 48 98 99
mailto:birke@kontor4.de
http://www.kontor4.de
Am 30.04.2004 um 12:29 schrieb Pete:
> Hi there,
>
> I have an array containing the image name and description accessible
> though
> $data[i].image and $data[i].description in a smarty {section}.
>
> I just don't understand how i can dynamically create a table in smarty
> that
> has lets say two columns.
> Would anybody be so kind to explain to me how to do it ?
>
> Thank you very much.
>
> --
> Smarty General Mailing List (http://smarty.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--
Smarty General Mailing List (http://smarty.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic