下面是代码
.git
下面是得到数据的程序段。
$topics = D('TopicView')->order('last_touched desc,created desc,last_replied_time desc,id desc')->select();
$this->topics = $topics;
结果'username','nickname','avatar','uid','reputation'这几个字段信息都没出来。请问是视图模型的字段设置的不对吗?
.git
下面是得到数据的程序段。
$topics = D('TopicView')->order('last_touched desc,created desc,last_replied_time desc,id desc')->select();
$this->topics = $topics;
结果'username','nickname','avatar','uid','reputation'这几个字段信息都没出来。请问是视图模型的字段设置的不对吗?