Forums / Developer / Problems when using ezcomments / Comment61617
Chen Xiongjie
Tuesday 14 September 2010 1:08:22 pm
Hi, Lars,
The fetch functions were designed to be used in template, so it will be safe to use them in template.
But if you try to use fetchCommentListByContentObjectIDList in php, I think the problem is that the sortby field missing(which can be seen as a inconvenient issue :) ). So if you use fetchCommentListByContentObjectIDList(null,null,null,null,'modified',null,0,100,array()), it should work.
But still fetch function in template is recommended.
Documentation: http://ez.no/doc/extensions/ez_comments/setup_and_user_guide_1_1/template_fetch_functions/comment_list_by_content_list
Thanks.
Chen
eZ Comments: http://projects.ez.no/ezcomments twitter: http://twitter.com/xiongjie