왜 에러가 나죠.. -_-+
본문
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
<?php
if (!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
해당 스킨 파일 상단에 lib 파일 인클루드 추가해보세요.
include_once(G5_LIB_PATH.'/latest.lib.php');
그랬더니 이런 에러가...... 또 ;;;;;
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
답변을 작성하시기 전에 로그인 해주세요.