Quantcast
Viewing all articles
Browse latest Browse all 72

網路與網站知識 • smarty 預設安裝

安裝目錄
D:/Inetput/smarty
/libs
/templates
/templates_c
/cache
/configs
後四個目錄可讀寫,供smarty使用
可以不用額外設定;也可以依 project 額外設定運行目錄
$smarty->setTemplateDir(APP_PATH . "/templates/");
$smarty->setCompileDir(APP_PATH . "/templates_c/");
$smarty->setCacheDir(APP_PATH . "/cache/");
$smarty->setConfigDir(APP_PATH . "/configs/");

在 php.ini 中修改
include_path
加入 如
include_path = ".;C:/php-5.6.6/includes;D:/inetpub/smarty"
這樣可以方便載入 smarty 設定檔,
直接用
require('libs/Smarty.class.php');
省得設定路徑的問題

統計資料: 發表於 由 dtchang — 2018-05-07, 10:58



Viewing all articles
Browse latest Browse all 72

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>