웹마스터 팁

샘플 :

https://eond.com/index.php?mid=eond_dentistry

https://eond.com/index.php?mid=eond_dentistry&act=about

https://eond.com/index.php?mid=eond_dentistry&act=s1

https://eond.com/index.php?mid=eond_dentistry&act=s2

 

하나의 레이아웃에서 act에 따라서 다른 페이지를 보여주는 코드입니다.

 

<!--@if($mid==='eond_dentistry' && !$act)-->
<section class="visual_wrap">
   <img src="img/main_vis.png" alt="">
</section>
<!--@elseif($act == "about")-->
<include target="inc/about.html" />
<!--@elseif($act == "s2")-->
<include target="inc/s2.html" />
<!--@elseif($act == "s3")-->
<include target="inc/s3.html" />
<!--@elseif($act == "s4")-->
<include target="inc/s4.html" />
<!--@elseif($act == "s5")-->
<include target="inc/s5.html" />
<!--@elseif($act == "s6")-->
<include target="inc/s6.html" />
<!--@elseif($act == "s7")-->
<include target="inc/s7.html" />
<!--@elseif($act == "s8")-->
<include target="inc/s8.html" />
<!--@elseif($act == "s9")-->
<include target="inc/s9.html" />
<!--@else-->
{$content}
<!--@end-->

 

출처 : https://eond.com/index.php?mid=xe_forum&page=1&document_srl=400603

제목 글쓴이 날짜

등록된 글이 없습니다.