Hi,
I use FastTemplate.php described at:
http://www.phpbuilder.com/columns/sascha19990316.php3
I have a tpl like:
MyTemplate.tpl
<table>
<!-- Here starts the repeating block //-->
<TR><td>{VAR1}</td><td>{VAR2}</td></TR>
<!-- Here ends the repeating block //-->
</table>
===========================
Now, how can I the let the VAR1 and VAR2 loop for all my $VAR1[x] and $VAR2[x] values? It should not be nessecery to split this tpl up in two other tpl's:
- One tpl with the block replaced with an STRING
- One tpl with only the block and replacing STRING with this repeated tpl
The solution to this problem is descibed at the following URL, but with an other template engine (not FastTemplate.php):
http://www.devshed.com/Server_Side/PHP/PHPLib/page4.html
How can I reach the same with FastTemplate.php (lift the block out of the tpl and let it loop?
YS,
J Westerhof