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:[EMAIL PROTECTED]]
Sent: 30. april 2001 21:09
To: Fabian Raygosa; [EMAIL PROTECTED]
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]