외부페이지에서 템플릿 include 하기

Mr.키아 2018.02.05 11:15:08

1.
{@
$oTemplate = &TemplateHandler::getInstance();
$html = $oTemplate->compile(_XE_PATH_ . '(자료종류)/(자료폴더명)/skins/(스킨명)/', '(템플릿파일명)');
echo $html;
}

 

2.
<!--@if($var1=="value")-->
<include target="value.html">
<!--@endif-->