macでxammpにsmarty導入

 ①smarty 3.1.19.2をダウンロードし

/Applications/XAMPP/xamppfiles/lib/php/にsmartyという名前で保存

 

 ②php.iniを変更

include_path=".:/Applications/XAMPP/xamppfiles/lib/php:/Applications/XAMPP/xamppfiles/lib/php/pear.:/Applications/XAMPP/xamppfiles/lib/php/smarty/libs"

 

 

 ③以下のファイルを作成

/Applications/XAMPP/xamppfiles/htdocs/smarty/templates /Applications/XAMPP/xamppfiles/htdocs/smarty/templates_c /Applications/XAMPP/xamppfiles/htdocs/smarty/config /Applications/XAMPP/xamppfiles/htdocs/smarty/cache

 

 

 


SmartyをMac XAMPP環境にインストール - Kinopyo Blog