$this->results如何接受多个返回值

#1 soxfmr

手册中使用 $this->results = $guestbook->findAll(),然后在Smarty模板中接收输出内容。

如果页面中要在两个表中查询输出,$this->results该如何接收到两个表的值

2013-09-28 18:01:22

#2 soxfmr

以解决,使用 $this->arg 形式进行赋值,然后在模板中引用先对的变量。

2013-09-28 18:14:43

#3 jake

就是数组

2013-09-29 06:50:32