2012年2月21日 星期二

使用 Dreamweaver 編輯 tpl 檔案

目前有些 MVC 架構的 View 用的附檔名為 .tpl。基本上這個檔案也是用 PHP + Html 來寫的。Dreamweaver 預設並沒有加上這個附檔名,所以要手動自己設定一下。

1. 開啓 MMDocumentTypes.xml 檔案,若沒改安裝目錄的話,位於 C:\Program Files\Adobe\Adobe Dreamweaver CS5\configuration\DocumentTypes 下。

2. 加上 tpl 在這行  <documenttype id="PHP_MySQL" servermodel="PHP MySQL" internaltype="Dynamic" winfileextension="php,php3,php4,php5,phtml,tpl" macfileextension="php,php3,php4,php5,phtml,tpl" file="Default.php" writebyteordermark="false" mimetype="text/html"> ]

3. 關閉 Dreamweaver 後,再開啓即可。

沒有留言:

張貼留言