Re: xe에서 댓글 url 올때 해당 페이지 추출 어느정도 구현
더시민
0
1554
0
2021.01.23 20:00
우선은 comment_srl을 우선하다보니 페이지를 넘기거나 하는 등의 경우에는 comment_srl을 초기화 해야하는 추가가 필요하다
//12s comment_page 구상
$comment_count = 20;
echo $comment_srl = Context::get('comment_srl');
if($comment_srl){//comment_srl 존재할때 페이지를 구한다.
%%%%%%%%%%%%%%`comments_list`.`arrange` asc LIMIT 100, 20
if(array_search($comment_srl,array_column($output->data,'comment_srl')) !==false ) {}
else {
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
}
}
}