Hello,
I know of some template engines like Smarty, and so on.
But I decided not to use them, as I would prefer to hold the coding as simple as possible and I do not need that huge amount of functions.
So I am trying to do this
I have a index.php file where I call a template:
include ('../Templates/cv24.tpl');
then I have in the template html code this one: {Last_Links}
in the index.php file I have:
$Last_Links = '<table width="26%" border="0">
<tr>
<td width="31%"><?php do { ?>
<table width="80%" border="0">
<tr>
<td><a title="<?php echo $row_RecordsetLast["ESPTitle"]; ?>"
href="<?php echo $row_RecordsetLast["URL"]; ?>" class="cv24"><?php echo
(++$startRow_RecordsetLast) ?> <?php echo $row_RecordsetLast["ESPTitle"];
?></a></td>
</tr>
</table>
<?php } while ($row_RecordsetLast =
mysql_fetch_assoc($RecordsetLast)); ?></td>
</tr>
</table>';
What must I do in order to display $Last_Links inside the cv24.tpl file with
{Last_Links} ?
Do I have to regisser the variable somewehre? How ? where ?
Please point me in the right direction, what I would need to do to define {Last_Links} used in the template to the php code defined as $Last_Links
Any help much appreciated !
Daniel