CakePHP 1.3 default file extension for the views template are in .ctp
If you open up .ctp files with Adobe Dreamweaver CS4, you will noticed that all the codes are in black and white. To make Dreamweaver show the color syntax of PHP & HTML in .ctp files, do the following:
- Navigate to Dreamweaver CS4 Installation folder/configuration/DocumentTypes
- Open up MMDocumentTypes.xml
Search for:
1 | winfileextension="php,php3,php4,php5" |
Replace with:
1 | winfileextension="php,php3,php4,php5,ctp" |
Restart your Dreamweaver CS4 if it is running. Open up again and you will notice that .ctp files now has the same color syntax as .php files.













