RE: [PHP] template solutions?

From: Date: Tue, 01 May 2001 15:55:04 +0000
Subject: RE: [PHP] template solutions?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-50957@lists.php.net to get a copy of this message
Nope, it doesn't support nested loops (or dynamic blocks, as it's called now). But PHPLib templates supports this. PHPlib covers a lot of other stuff as well, but I haven't bothered to take a look at that yet, as Fasttemplate is good enough for my use ;-) http://phplib.netuse.de is their URL. Regards, ---------- Henning Kilset Pedersen Anarchy Online Server Operations Oracle, PHP, e-Commerce etc. Funcom Oslo AS phone + 47 22 92 58 40 cell + 47 91 66 40 30 email henning.pedersen@funcom.com -----Original Message----- From: Steven Haryanto [mailto:steven@haryan.to] Sent: 1. mai 2001 17:50 To: Henning Kilset Pedersen; 'Fabian Raygosa'; php-general@lists.php.net Subject: RE: [PHP] template solutions? Cool. I didn't know that. Does FastTemplate support nested loop and ifs? Steve At 5/1/2001 10:33 PM, Henning Kilset Pedersen wrote: >Fasttemplate supports loops and if's. > >You set a dynamic block like so: > ><!-- BEGIN DYNAMIC BLOCK : rowset --> ><TR> > {ROWCONTENT} ></TR> ><!-- END DYNAMIC BLOCK : rowset --> > >And then in the PHP code that parses this html template (.tpl, for example) >file, you do a $tpl->assign (.ROWCONTENT, "rowdata"); > >and loop over that. the .ROWCONTENT means that you're ADDING data to a >variable that already exists. Replace "rowdata" with the data for the row in >question. > >Isn't this what you want??

« previous php.general (#50957) next »