Opning phtml thtml ctp Files In Dreamweaver

To open and read the .phtml (Zend Framework) .thtml or .ctp (CakePHP) files in Dreamweaver just like the .php files follow these steps –

1. Open the file – C:\Program Files\Macromedia\{Dreamweaver Folder}\Configuration\DocumentTypes\MMDocumentTypes.xml (Replace C: with the drive name where your OS is installed)

2. Search “php,php3,php4,php5” (It will be line # 75). After php5 add the extension. Like “php,php3,php4,php5,phtml,thtml,ctp”. There will be two occurrences. winfileextension for Windows and macfileextension for Macs.

3. Restart Dreamweaver and use these files just like php.

3 comments

  1. Hello Sumit,
    Thanks for sharing such a nice article …this works well in case of dreamweaver 8 ..do you think that the same will work for dreamweaver CS5 or any other dreamweaver CS version

  2. There seems to be about 20 variations of this pbrolem Since there is no error message I guess it is simply harder to narrow down. I had previously tried 4 fixes that didnt work for me but others had commented saying it had done the job for them. Thanks for this tip Bruno!My pbrolem is fixed so no need to attempt it but others searching for ways to resolve will be grateful.

Leave a comment

Your email address will not be published. Required fields are marked *