for($forstart; $forstart < $forend; $forstart++){ if($forstart == $page){ }else{ } }
Próbowałem {section}
Jednakże wyświetla mi tylko puste [] bez zawartości {$forstart[foo]}
Pomoże ktoś?
for($forstart; $forstart < $forend; $forstart++){ if($forstart == $page){ }else{ } }
{section name=xxx loop=$forend start=0 step=1} {if $smarty.section.xxx.index == $page} <li class="current"> {else} <li> {/if} <a href="index.php?page={$smarty.section.xxx.index}">[{$smarty.section.xxx.index}]</a></li> {/section}
$forend = 5; //Musi być int $page = 2; //Musi być int