template_dir = WEB_PATH.'/templates/'.WEB_THEME; #設定編譯路徑 $smarty->compile_dir = WEB_PATH.'/templates_c/'; #設定檔路徑 $smarty->config_dir = WEB_PATH.'/configs/'; #設定暫存路徑 $smarty->cache_dir = WEB_PATH.'/cache/'; #設定模板URL $smarty->assign("themeUrl", WEB_URL.'/templates/'.WEB_THEME); ```