Tags
亲和力网站 小狗钱钱 72小时法则 apache C CakePHP Capistrano Catalyst change filename Cpan css cygwin Database Directory Dreamweaver encoding ext2 Geshi heredoc httperf IP address IPv6 Joomfish Joomla Jquery Junction Kannel Linux MacOS Magento NTFS Oracle Perl PHP Phtml print Read File Regex Shell SqlServer2005 ssh Test touch Ubuntu Windows
Tag Archives: Phtml
让Dreamweaver支持phtml(支持更多的文件类型)
原文链接:http://www.diybl.com/course/1_web/dreamweaver/dwjs/2008324/106583.html
ZendFramework模板默认扩展名是.phtml,用DW打开后默认是使用纯文本编辑,不能高亮显示也不能显示代码提示等。只需简单修改DW的配置文件,即可让DW打开phtml后是使用PHP引擎解析:
找到如下文件:
%Dreamweaver安装目录%\ configuration\ documenttypes\ mmdocumenttypes.xml
将原始内容:
winfileextension=”php,php3,php4,php5″ macfileextension=”php,php3,php4,php5″ file=”Default.php” writebyteordermark=”false”>
修改为(即在粗体部份加上.phtml):
winfileextension=”php,php3,php4,php5,phtml” macfileextension=”php,php3,php4,php5,phtml” file=”Default.php” writebyteordermark=”false”>
保存后重新启动DW即可。
类似情况,也可在 mmdocumenttypes.xml 文件内找到对应解析引擎进行手工修改。