PHP관련
Smarty 를 윈도우에서 설치하기
초파
2011. 10. 14. 23:15
[출처] Windows에서 Smarty 설치...|작성자 카카로트
Smarty QuickStart Guide에서의내용을 바탕으로 다시 정리해 보자...
http://smarty.php.net/에서 최신버전을 다운 받는다. [Smarty-2.6.18.tar.gz]
PHP.ini을 열어 include_path를 확인한다. 막혀있다면 풀어 Smarty를 include할 path를 작성한다. [include_path = ".;c:\dev\tools\PHP\include\Smarty"]
변경된 PHP.ini를 적용하기위해 apache를 restart한다.
다운받은 Smarty의 압축을 풀어 libs/ 아래 파일 전부를 include_path로 옮긴다.
이것으로 Smarty 설치가 모두 완료된것이다.
Smarty를 작성하기 위한 기본적인구조는 아래와 같다.
XXXXX
|
---------------------------------------
| | | |
index.phptemplates templates_c configs
|
index.tpl