파일출력부분인데요 혹시 이미지 하나만 출력하게 할려면 어떻게 해야할까요?
Copy
<?php // 파일 출력 $v_img_count = count($view['file']); if($v_img_count) { for ($i=1; $i<=count($view['file']); $i++) { if ($view['file'][$i]['view']) { echo get_view_thumbnail($view['file'][$i]['view']); } } } ?>
답변 2개 / 댓글 1개
채택된 답변
+20 포인트
답변을 작성하려면 로그인이 필요합니다.
echo get_view_thumbnail($view['file'][$i]['view']);
break;
?>
이렇게 하면 다른게 내용이안나오고 이미지만 나오네요