Wednesday, November 3, 2010

Dreamweaver and CakePHP (.ctp) Files

Dreamweaver does not recognize .ctp files by default, so to get them to color code as PHP files, make some small changes in the configuration files.

Edit C:\Documents and Settings\user\Application Data\Adobe\Dreamweaver 9\Configuration\Extensions.txt Add CTP to the All Documents and PHP Files lines.

Edit C:\Program Files\Adobe\Adobe Dreamweaver CS3\configuration\Extensions.txt Add CTP to the All Documents and PHP Files lines.

Edit C:\Documents and Settings\user\Application Data\Adobe\Dreamweaver 9\Configuration\DocumentTypes\MMDocumentTypes.xml Add ctp to the documenttype id="PHP MySQL"

Edit C:\Program Files\Adobe\Adobe Dreamweaver CS3\configuration\DocumentTypes\MMDocumentTypes.xml Add ctp to the documenttype id="PHP MySQL"

Restart Dreamweaver

No comments:

Post a Comment