
Chcę wyświetlić szablon smarty w pętli WHILE, ale wtedy cały szablon mi się kilka razy. Myslę, że bloki by w tym pomogły...
<?php $smarty->assign( \"news\", $newsArr ); ?>
{section name=i loop=$news} {/section}
oraz
<?php $smarty->assign( \"news\", $row['news_title'] ); //to jest wewnątrz WHILE ?>
<?php ... $smarty->assign('dane', $x); $smarty->display('szablon.tpl'); ?>