답변 2개 / 댓글 1개
채택된 답변
+20 포인트
리스트에서는
$thumb = get_list_thumbnail($board['bo_table'], $list[$i]['wr_id'], $board['bo_gallery_width'], $board['bo_gallery_height']
);
if($thumb['src']) {
$img_content = '<img src="'.$thumb['src'].'" alt="'.$thumb['alt'].'" width="'.$board['bo_gallery_width'].'" height="'.$
board['bo_gallery_height'].'">';
} else {
$img_content = '<span style="width:'.$board['bo_gallery_width'].'px;height:'.$board['bo_gallery_height'].'px">no image<
/span>';
}
echo $img_content;
이렇게 처리 하고
뷰에서는
<img src="<?php get_view_thumbnail($view['file'][$i]['view']) ?>" alt="">
답변에 대한 댓글 1개
2017-06-14 (수) 23:52:19
불러올수 있습니다
게시판설정에서 목록에서 파일 사용을 체크하시면
한줄로 불러올수있습니다
게시판설정에서 목록에서 파일 사용을 체크하시면
한줄로 불러올수있습니다
답변을 작성하려면 로그인이 필요합니다.