判断文章是否被自己收藏过 CMS3


{if $ci->db->where('uid', $member.uid)->where('cid', $id)->count_all_results('1_news_favorite')}
已经收藏了
{/if}

以上方法在show.html有效,如果在list.html需要把$id改成$t.id


签名:这个人很懒,什么也没有留下!
最新回复 (0)
返回