在smarty中从数据库返回数据

时间:2015-07-09 11:19:59

标签: php smarty

我在smarty中从数据库返回数据时遇到问题。

  Edge :: (Label l) => Int -> l -> Int -> Edge l

它不起作用......

Edge 2 A 1

为什么这不起作用?我是聪明的新人......

1 个答案:

答案 0 :(得分:0)

你指定komunikaty

$smarty->assign('komunikaty', $rows);

使用

{foreach $komunikaty as $item}
       {$item.title}
{/foreach}

这项工作正确。

相关问题