Opening CakePHP Files in Dreamweaver

Go to “C:\Program Files\Adobe\Adobe Dreamweaver CS3\configuration”
Open “Extensions.txt” and on the first line at the very end add CTP separated by commas as shown below:

,MASTER,CTP:All Documents

Add CTP to the “:PHP Files” line as shown below

PHP,PHP3,PHP4,PHP5,TPL,CTP:PHP Files

Open “DocumentTypes” folder and edit the “MMDocumentTypes.xml” file with Notepad.
Search for the line which has an id “PHP_MySQL” and add the CTP file extensions to both the “winfileextension” and “macfileextension” as shown below:

winfileextension=”php,php3,php4,php5,ctp”
macfileextension=”php,php3,php4,php5,ctp”

Finally go to “C:\Documents and Setting\suser_name\Application Data\Adobe\Dreamweaver 9\Configuration”.
Open “Extensions.txt” and add same things as before.

In Windows 7 Application Data is not an actual folder. It is a Junction which is only there for backward compatibility. A junction is a shortcut that redirects file, folder and application to a different location.

Go to C:\Users\user_name\AppData\Roaming folder

Note: Older versons of Cake PHP used .THTML extensions.Add THTML along with CTP if you want to use older verson of Cake PHP.

CAKE PHP Open Source PHP PHP Framework Tips and Tricks