yc5-5.0.19 / mobile / skin / shop / basic 폴더에 있는
iteminfo.info.skin 파일에 latest() 함수를 넣어줬더니 이런 에러가...
Fatal error: Call to undefined function latest() in /home/hosting_users/programs/www/project/koteka_4/mobile/skin/shop/basic/iteminfo.info.skin.php on line 26
Copy
<?phpif (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가include_once(G5_LIB_PATH.'/iteminfo.lib.php');// add_stylesheet('css 구문', 출력순서); 숫자가 작을 수록 먼저 출력됨add_stylesheet('<link rel="stylesheet" href="'.G5_MSHOP_SKIN_URL.'/style.css">', 0);?><h1 id="win_title">상품설명</h1><div id="sit_inf" class="win_desc"> <?php if ($it['it_explan'] || $it['it_mobile_explan']) { // 상품 상세설명 ?> <div id="sit_inf_explan"> <?php echo ($it['it_mobile_explan'] ? conv_content($it['it_mobile_explan'], 1) : conv_content($it['it_explan'], 1)); ?> </div> <?php } ?></div> <div> <?php if ($it['it_id'] == 'ALYOGA0956') echo latest("basic.review", "ALYOGA0956", 10, 60); else echo "사용후기 없음"; ?> </div>
답변 2개 / 댓글 1개
채택된 답변
+20 포인트
2015-10-26 (월) 18:44:15
해당 스킨 파일 상단에 lib 파일 인클루드 추가해보세요.
include_once(G5_LIB_PATH.'/latest.lib.php');
2015-10-26 (월) 18:52:12
그랬더니 이런 에러가...... 또 ;;;;;
Copy
Warning:
include(/home/hosting_users/programs/www/project/koteka_4/mobile/skin/latest/basic.review/latest.skin.php):
failed to open stream: No such file or directory in
/home/hosting_users/programs/www/project/koteka_4/lib/latest.lib.php on
line 72
Warning: include(): Failed opening
'/home/hosting_users/programs/www/project/koteka_4/mobile/skin/latest/basic.review/latest.skin.php'
for inclusion
(include_path='/home/hosting_users/programs/www/project/koteka_4/plugin/htmlpurifier/standalone:.:/usr/local/php53/lib/php')
in /home/hosting_users/programs/www/project/koteka_4/lib/latest.lib.php
on line 72
답변에 대한 댓글 1개
답변을 작성하려면 로그인이 필요합니다.