샘플 :
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
그런데 act로 하면 다른 애드온 등에 영향을 줄 수도 있지 않나요? 많은 경우 act로 애드온 작동에 조건을 주는 걸로 알고 있는데요. url의 act 파라미터는 괜찮은 건가요?