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 [EMAIL PROTECTED]

-----Original Message-----
From: Steven Haryanto [mailto:[EMAIL PROTECTED]]
Sent: 1. mai 2001 17:50
To: Henning Kilset Pedersen; 'Fabian Raygosa'; [EMAIL PROTECTED]
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??



-- 
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]

Reply via email to