Re: templates with php
| From: | Keith Devens | Date: | Mon, 31 Jul 2000 19:16:00 +0000 |
| Subject: | Re: templates with php | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-9245@lists.php.net to get a copy of this message | ||
> > Plus, template engines can have added features such as table building.
> > Eg:
> >
> > <TABLE>
> > <LOOP NAME="deidre">
> > <TR><TD>{stuff}</TD></TR>
> > </LOOP NAME="deidre">
> > </TABLE>
> >
> > This could build an entire table with however many rows (dependent on
> > whats in the array (or sql result set) $deidre), and the designers still
> > have full control on how the table looks. Not sure how you could do this
> > with your method (though I've not really thought about it that much
> > :) ).
>
> <TABLE>
> <?loop("deidre")?>
> <TR><TD>whatever</TD></TR>
> <?endloop("deidre")?>
> </TABLE>
>
> Not very different at all.
>
> And I can guarantee you that this is faster.
>
> -Rasmus
This is exactly what I was wondering about. How might this be implemented?
How can one function start a loop and then another function end it?