From smarty-general Fri Apr 30 13:41:30 2004 From: Gabriel Birke Date: Fri, 30 Apr 2004 13:41:30 +0000 To: smarty-general Subject: Re: [SMARTY] How can one create a table dynamically with Smarty ? Message-Id: <16768766-9AAC-11D8-8E9C-003065FA313E () kontor4 ! de> X-MARC-Message: https://marc.info/?l=smarty-general&m=108333250023022 Haven't tested this but it should give you the general idea on how to accomplish a table: {section loop=$data name=i} {/section}
{$data[i].image}{$data[i].description}
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