1
suico
A little help on smarty ...
  • 2005/3/30 18:57

  • suico

  • Friend of XOOPS

  • Posts: 374

  • Since: 2003/7/24


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.

2
suico
Re: A little help on smarty ...
  • 2005/3/30 21:16

  • suico

  • Friend of XOOPS

  • Posts: 374

  • Since: 2003/7/24


Maybe you did not understand me?

Login

Who's Online

144 user(s) are online (125 user(s) are browsing Support Forums)


Members: 0


Guests: 144


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Dec 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits