Re: [SMARTY] How can one create a table dynamically with Smarty ?

From: Date: Fri, 30 Apr 2004 13:41:30 +0000
Subject: Re: [SMARTY] How can one create a table dynamically with Smarty ?
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-11336@lists.php.net to get a copy of this message
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 > >

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