로그인 페이지 질문드립니다 정보
로그인 페이지 질문드립니다첨부파일
본문
댓글 전체
menu.php를 열어 보면 css및 js의 경로가 상대 경로입니다. 즉 index.php의 경우 그누가 설치된 폴더에 있기 때문에 문제가 없지만 로그인의 경우 폴더가 그누가 설치된 폴더에서 bbs폴더로 내려갑니다. 그렇게 되면 css및 js의 경로가 bbs/css 및 bbs/js로 인식하게 되기 때문에 파일이 없는 식이 됩니다.
문제를 해결하려면 상대적인 경로를 의미할 수 있는 곳 앞에 <?php echo $g4['path'];?>를 붙이시면 됩니다. 예로 <link href="css/skins/grey.css" rel="stylesheet" type="text/css" />는 <link href="<?php echo $g4['path'];?>css/skins/grey.css" rel="stylesheet" type="text/css" /> 이런 식이 되겠죠.
문제를 해결하려면 상대적인 경로를 의미할 수 있는 곳 앞에 <?php echo $g4['path'];?>를 붙이시면 됩니다. 예로 <link href="css/skins/grey.css" rel="stylesheet" type="text/css" />는 <link href="<?php echo $g4['path'];?>css/skins/grey.css" rel="stylesheet" type="text/css" /> 이런 식이 되겠죠.
감사합니다 . 적용해보니 됩니다!^^