1
I am trying to build a module and am having some questions coming into my mind, hope you can help me.
The first one is:
I have a function moreor less like this:
while ($row = $xoopsDB->fetchBoth($result))
{
$listadoadores = "<td>".$row["doacao_data"]."</td>".
"<td>".$doador."</td>".
"<td>".$row["tipo_key"]."</td>".
"<td>".$row["doacao_observacao"]."</td>".
"<td>R$ ".$row["doacao_valor"]."</td>";
$xoopsTpl->append('rows', $listadoadores);
}
I then have a template based on smarty like this to show it:
<{foreach item=link from=$rows}>
<tr>
<{foreach item=field from=$link}>
<{$field}>
<{/foreach}>
</tr>
<{/foreach}>
What I would like is:
Tobe able to change the code and template in a way that I will be able to set the template in the template not in the code. I mean to be able to change where each field will show
Sorry for the bad english and hope someone understand and answer my question.