게시판 상단에 이 구문을 추가해주세요.
{@
$oCommunicationModel = &getModel('communication'); //dispCommunicationFriend
$friend_group_srl = Context::get('friend_group_srl');
$columnList = array('friend_srl', 'friend_group_srl', 'target_srl', 'member.nick_name', 'friend.regdate');
$oCommunication = $oCommunicationModel->getFriends($friend_group_srl, $columnList);
$friendList = $oCommunication->data;
}
그리고 친구 여부를 출력하는 곳에 아래 코드를 넣어주세요.
<!--@foreach($friendList as $key)--><!--@if($key->target_srl == $document->getMemberSrl())-->friend<!--@end--><!--@end-->
참조글 :
XE 이중배열 안에서 값 찾기 (PHP)
https://xetown.com/questions/1123607

