case "drzewo": $smarty->assign("list" , $a=$announcement->VifList()); $smarty->assign("listx" , $a=$announcement->VifListx(tu trzeba podac ID)); $kernel->template("drzewo.smarty"); break;
plik smarty:
<div id="drzewo"> {foreach item=item from=$list} <div class="dr"> Tutaj potrzebuję podać parametr $item.id do 2giej funkcji, z której korzystam.. {$item.name} </div> {/foreach} </div>
Nie wiem jak to opisać, żeby było bardziej zrozumiałe, mam nadzieję, że zrozumiecie..