28
May
07

How to make dreamwearver to recognize .thtml files of cake PHP

CakePHP is a marvelous PHP framework, but if you use Dreamweaver 8 as your editor, you’ll need to make a few configuration changes.

The main thing you’ll notice is that .thtml files (CakePHP views) are not supported by Dreamweaver 8. Here’s how to make Dreamweaver recognize that file type:
Step 1: Extensions.txt

The first step is to go to the C:\Program Files\Macromedia\Dreamweaver 8\Configuration directory and edit Extensions.txt

On the first line, right before :All Documents, type in ,THTML so that the end of the line looks like this:

…,VTML,INC,JAVA,EDML,WML,THTML:All Documents

Next, find the line with :P HP Files and edit it similarly so that it looks like this:

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

Another copy of Extensions.txt can be found in C:\Documents and Settings\<your username>\Application Data\Macromedia\Dreamweaver 8\Configuration – we suggest that you make both these changes in that file as well, just for good measure.
Step 2: MMDocumentTypes.xml

Next, go to the C:\Program Files\Macromedia\Dreamweaver 8\Configuration\DocumentTypes directory. Edit the file MMDocumentTypes.xml

Add the thtml extension to the PHP_MYSQL documenttype declaration line so that it looks like the following:

<documenttype id=”PHP_MySQL” servermodel=”PHP MySQL” internaltype=”Dynamic”
winfileextension=”php,php3,php4,php5,thtml”
macfileextension=”php,php3,php4,php5,thtml”
file=”Default.php” writebyteordermark=”false”>

Save the file and restart Dreamweaver – now you can create Cake PHP views within Dreamweaver!

If you find this information is userful then leave a comment.


5 Responses to “How to make dreamwearver to recognize .thtml files of cake PHP”


  1. 2 vipin sankrit
    August 12, 2008 at 1:46 pm

    A lot of thanks to u……………

  2. October 26, 2008 at 5:21 am

    wonderful tip! one would think they’d have added this to the interface by CS3, but no – they suck.

    Here are the new paths:
    * C:\Program Files\Adobe\Adobe Dreamweaver CS3\configuration\Extensions.txt
    *C:\Program Files\Adobe\Adobe Dreamweaver CS3\configuration\DocumentTypes\MMDocumentTypes.xml

    I didn’t bother changing anything in the documents and settings area.

  3. 4 Rasana
    November 3, 2008 at 1:05 pm

    Thank you very much!!!

  4. 5 sammie...kolkata..india
    October 12, 2009 at 11:54 am

    Not a bad tip at all…….keep it on


Leave a Reply




 

May 2007
M T W T F S S
    Dec »
 123456
78910111213
14151617181920
21222324252627
28293031  

Blog Stats

  • 15,978 hits

My photography

Horanaadu

IMG_0772

IMG_0773

Horanaadu

More Photos

I am on twitter