mam problem z wyświetleniem w smartach danych pobranych z tabeli.
engine.php
<?php $aPages = $oResult; $smarty->assign( 'dPages', $aPages ); ?>
template.tpl
{foreach from=$dPages item=oPages} <tr> <td>{$oPage.id}</td> <td>{$oPage.sName}</td> <td><a href="?view=page_form&id={$oPage.Id}"><img src="images/edit.png" /></a></td> <td><a href="?action=delete&id={$oPage.Id}"><img src="images/delete.png" /></a></td> </tr> {/foreach}
Wyświetla mi się 5 wierszy choć powinien jeden i brak danych w pierwszych dwóch kolumnach.