css url 질문
본문
occupant.php
<?php
include_once('../common.php');
// 페이지 제목
$g5['title'] = "새로운 페이지";
add_stylesheet('<link rel="stylesheet" href="'.G5_SHOP_CSS_URL.'/style.css">', 0);
// add_stylesheet('css 구문', 출력순서); 숫자가 작을 수록 먼저 출력됨
include_once(G5_PATH.'/head.php');
?>
<?php
include_once(G5_PATH.'/tail.php');
?>
새페이지를 만드려고 하는데
스타일 시트가 안먹는 이유가 잇을까요?
Warning: Use of undefined constant G5_SHOP_CSS_URL - assumed 'G5_SHOP_CSS_URL' (this will throw an Error in a future version of PHP) in /usr/share/nginx/html/occupant/occupant.php on line 5
!-->
답변 2
G5_SHOP_CSS_URL
->
G5_CSS_URL
쇼핑몰에 존재하는 사용자가 임의로 추가한
CSS URL인것같은데
G5_SHOP_CSS_URL 이 define안된것으로 보면
shop.config.php에
해당 URL을
define ('G5_SHOP_CSS_URL' , '실웹경로');
를 추가하세요
답변을 작성하시기 전에 로그인 해주세요.