반응형 템플릿1 PHP 템플릿 클래스 사용 간단한 설명은 다음과 같습니다. 먼저 기존의 코딩 방법 입니다. # 파일명 : index.html for($i=0;$i=200;$i++) { echo "$i "; } ?> 식으로 제작 하였습니다. 이경우 위에 애기한 데로. 나중에 디자인 수정시에는 프로그래머와 디자인너가 작업을 둘이서 해야 했습니다,. Templite를 이요하면 다름과 같이 쓰여 집니다. # 파일명 : index.html include("class.FastTemplate.php"); $tpl = new FastTemplate("./templates"); $tpl->define( array( main => "index.tpl", ) ); for($i=0;$i=200;$i++) { $temp .= "$i "; } $tpl->assign( a.. 2009. 7. 7. 이전 1 다음 728x90 반응형