content.skin.php 인클루드 채택완료
안녕하세요.
각 서브페이지마다 인클루드를 따로 적용 하고 싶은데..
skin/content/basic/content.skin.php
여기에다
맨처음에는
<?php
if( $co_id=='company' ){
include('../include/sub_top1.php');
}
?>
이렇게 넣었더니 첫 페이지는 잘 적용이 되어
아래와 같이
http://sir.kr/data/editor/2404/3732244026_1714462109.3123.png" width="402" />
넣었는데,
아무것도 안 나오네요ㅠ
http://sir.kr/data/editor/2404/3732244026_1714462097.1605.png" width="472" />
다른 페이지에서는 다른 디자인이 나오도록 하고 싶은데 어떻게 해야 하는지 도움 받고 싶습니다.
감사합니다 ^^
답변 2개
답변에 대한 댓글 1개
댓글을 작성하려면 로그인이 필요합니다.
이런 방식도 있습니다.
if($co_id == "company" || $co_id == "ceo" || $co_id == "history" || $co_id == "location") {
include("../include/sub_top1.php");
} elseif ($co_id == "test1" || $co_id == "test2") {
include("../include/sub_top2.php");
} else {
include("../include/sub_top3.php");
}
댓글을 작성하려면 로그인이 필요합니다.
답변을 작성하려면 로그인이 필요합니다.
로그인