Configure dreamweaver for .thtml and .ctp files

Configure dreamweaver for .thtml and .ctp files

I prefer to use Dreamweaver to create code all of my websites, mainly because of the code highlighting and the way I organize my sites in separate folders. I realize that there are lots of text editors out there but Dreamweaver is what I’m comfortable with and it does the great job.


Other text editors are Netbeans, Ecplipse, Notepad++  etc  but these have limited features. Dreamweaver have lot of features almost all a developer need.Yeah, It is paid but by it you speedup of your coding affords and managing projects skills,I think lots of programmer like Dreamweaver.


In CakePHP I found out that Dreamweaver doesn’t open .THTML and .CTP extensions files automatically, But it is so easy to configure Dreamweaver for these type of file.
Here it is…


THTML and CTP Files
CakePHP 1.1 uses .THTML files and CakePHP 1.2 uses .CTP files. We will set both of these extensions so that we don’t have to fiddle around with Dreamweaver again.


Modifying the Necessary Dreamweaver files
There are 3 files that you need to edit. The first two are located in the folder that you have installed Dreamweaver, in my case It is in ‘C:\Program Files\Adobe\Adobe Dreamweaver CS3\configuration‘.

C:\Program Files\Macromedia\Dreamweaver 8\Configuration in case,if you are using Macromedia Dreamweaver 8


Open up ‘Extensions.txt’ and on the first line at the very end add THTML and CTP separated by commas, so the line should read
Similarly add these two extensions to the ‘:PHP Files’ line.


Next open the ‘DocumentTypes’ folder and edit the ‘MMDocumentTypes.xml’ file, just open it up using notepad/wordpad. Search for the line which has an id ‘PHP_MySQL’ and add the THTML/CTP file extensions to both the ‘winfileextension’ and ‘macfileextension’ so the line should read.




The final file is another version of the ‘Extensions.txt’ which is located in your ‘Documents and Settings’ Folder in my case this is ‘C:\Documents and Settings\Mahesh\Application Data\Adobe\Adobe Dreamweaver CS3\Configuration’ just add the very same things you inserted earlier.


If you are using Macromedia Dreamweaver 8, you need not to do this edit.



for windows 7 you need to edit one more configuration file:
C:\Users\\AppData\Roaming\Adobe\Dreamweaver CS3\en_US\Configuration\extensions.txt
edit just like the other extension files.


Hope this will make sense!!

15 thoughts on “Configure dreamweaver for .thtml and .ctp files”

    1. .ctp stands for CakePHP Template.
      In CakePHP view files are written in plain PHP and have a default extension as .ctp, these file contains all the presentation logic that is needed to view the data received from the controller.

      .ctp files may contain layouts, elements, or helpers.
      These files are stored in the CakePHP /app/views directory.

  1. Hmm it looks like your blog ate my first comment (it was super long) so I guess I’ll just sum it up what I submitted and say, I’m thoroughly enjoying your blog. I too am an aspiring blog writer but I’m still new to the whole thing. Do you have any points for inexperienced blog writers? I’d genuinely appreciate it.

  2. Excellent beat ! I would like to apprentice while you amend your website, how can i subscribe
    for a blog website? The account aided me a acceptable
    deal. I had been a little bit acquainted of this your broadcast offered
    bright clear idea

  3. I do not even understand how I finished up here, but I thought this put up was great.
    I don’t recognise who you are however definitely you’re going to a famous blogger
    in case you are not already. Cheers!

  4. Hey there! This is my first visit to your blog!
    We are a group of volunteers and starting a new initiative in
    a community in the same niche. Your blog provided us valuable information to work on.
    You have done a marvellous job!

  5. You can definitely see your enthusiasm within the work you write.

    The arena hopes for more passionate writers like you who aren’t afraid to mention how they believe. At all times follow your heart.

  6. I am truly thankful to the owner of this web
    page who has shared this great article at here.

  7. Hello! I could have sworn I’ve been to your blog before but after looking at some of the posts I realized it’s new to me.

    Anyways, I’m certainly delighted I came across it and I’ll be bookmarking it and checking back regularly!

  8. What’s Happening i’m new to this, I stumbled upon this I have discovered
    It absolutely helpful and it has aided me out loads. I hope to give a contribution & help other customers like its
    aided me. Great job.

  9. Hi there, of course this article is truly pleasant and I have learned
    lot of things from it concerning blogging. thanks.

  10. I’m gone to say to my little brother, that he should also pay a visit this website on regular basis to take updated from most recent news update.

  11. I was wondering if you ever thought of changing the structure of your blog?
    Its very well written; I love what you’ve got to say. But maybe you could a little more in the way of content
    so people could connect with it better. You’ve got an awful lot of text for only having one or 2 pictures.

  12. Hello there! This is kind of off topic but I need some guidance
    from an established blog. Is it very hard to set up your own blog? I’m not very technical but I can figure things out pretty fast. I’m thinking about making my own but I’m not sure where to start. Do you have any ideas or suggestions? Many thanks

Leave a Reply

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