當前位置: 首頁 > 人文社科 > 生活经验 >内容正文 生活经验 smarty模板 發布時間:2023/11/27 生活经验 36 豆豆 生活随笔 收集整理的這篇文章主要介紹了 smarty模板 小編覺得挺不錯的,現在分享給大家,幫大家做個參考. <?php require('../libs/Smarty.class.php'); $smarty = new Smarty; //$smarty->force_compile = true; //$smarty->debugging = true; //$smarty->caching = true; //$smarty->cache_lifetime = 120; $Name="Linux環境高級編程"; $smarty->assign("name",$Name); $smarty->left_delimiter = "<{"; $smarty->right_delimiter = "}>";$smarty->display("index.html"); //編譯并顯示位于./templates下的index.htm模板 ?>index.html <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html><head><title></title><meta http-equiv="Content-Type" content="text/html; charset=GBK"></head><body>名稱:<{$name}></body> </html> 總結 以上是生活随笔為你收集整理的smarty模板的全部內容,希望文章能夠幫你解決所遇到的問題。 如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。 模板 smarty 歡迎分享! 轉載請說明來源于"生活随笔",并保留原作者的名字。 本文地址:smarty模板 上一篇: 在Javascript中使用面向对象的编 下一篇: BAT批处理,怎么把文件的某行内容替换成