RE: [PHP] template solutions?

From: Date: Tue, 01 May 2001 15:49:52 +0000
Subject: RE: [PHP] template solutions?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-50959@lists.php.net to get a copy of this message
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 (#50959) next »