Re: [SMARTY] Re: How to generate a 3-column-table layout from an array of pictures.
| From: | Monte Ohrt | Date: | Thu, 05 Dec 2002 20:09:02 +0000 |
| Subject: | Re: [SMARTY] Re: How to generate a 3-column-table layout from an array of pictures. | ||
| References: | 1 2 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-6663@lists.php.net to get a copy of this message | ||
The template engine can handle this. Assign your data in a single array,
and let the template do the formatting.
example here:
http://smarty.php.net/contribs/examples/dynamic_table_columns/table.tpl.txt
Monte
On Thu, 2002-12-05 at 11:35, David Eisenhart wrote:
> "Geoffrey Hoffman" <ghoffman@aztrib.com> wrote in message
> > I didn't see fmod()
> > in the code sample David posted, so this might be an alternative.
>
> basically my code uses the same technique - deal with each full row in turn
> and then take on any incomplete row at the end; didn't think of using fmod()
> so dealt with the last row issue using a couple of vars and some php
> code (will probably replace this bit with fmod now)
>
> cheers,
> David Eisenhart
>
>
>
>
>
>
>
--
Monte Ohrt <monte@ispi.net>