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 = "".$row["doacao_data"]." | ".
"".$doador." | ".
"".$row["tipo_key"]." | ".
"".$row["doacao_observacao"]." | ".
"R$ ".$row["doacao_valor"]." | ";
$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.