单篇文章评论调用
可以使用:
代码: 全选
<?php
$parameter = array('parentId' => $this->cid, 'parentContent' => $this->row,'respondId' => $this->respondId, 'commentPage' => $this->request->filter('int')->commentPage);
$comments = $this->widget('Widget_Comments_Archive@' . $this->cid, $parameter);
?>
不过这个有个分页的问题(可能获取不到全部评论). 可以自行重载Widget_Comments_Archive类做下修改。我这个主题还木优化。
自动下拉分页的方法是使用:jquery.infinitescroll
Google搜索下吧.