RE: [PHP] template solutions?

From: Date: Tue, 01 May 2001 15:33:18 +0000
Subject: RE: [PHP] template solutions?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-50958@lists.php.net to get a copy of this message
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?? Regards, ---------- Henning Kilset Pedersen Anarchy Online Server Operations Oracle, PHP, e-Commerce etc. Funcom Oslo AS -----Original Message----- From: Steven Haryanto [mailto:steven@haryan.to] Sent: 30. april 2001 21:09 To: Fabian Raygosa; php-general@lists.php.net Subject: Re: [PHP] template solutions? At 5/1/2001 01:43 AM, Fabian Raygosa wrote: >Maybe this is what you are looking for >http://www.thewebmasters.net/php/FastTemplate.phtml Nope. I was looking for a template that supports loops and IFs. Someone pointed me to php dreamtime: http://www.phptemplates.org/ which is a cool project, by the way. Btw, I think I might need some extra "tags" to my template "language" so I'm going to hack this on by myself at the time being. Thanks, Steve -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net For additional commands, e-mail: php-general-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.general (#50958) next »