Apr 20, 2010
admin

Open CakePHP files in Dreamweaver with proper format(with coloring in PHP)

Hello Friends !!

Today I write about the framework. Currently I am starting CakePHP which is the MVC opensource which is widely used to develop rapid and user friendly application.

Its uses MVC structure. MVC => Model,View and Controller

Now I give you the basic idea about this framework.

Hello Friends !!

Today I write about the framework. Currently I am starting CakePHP which is the MVC opensource which is widely used to develop rapid and user friendly application.

Its uses MVC structure. MVC => Model,View and Controller

Now I give you the basic idea about this framework.

Hello Friends !!

Today I write about the framework. Currently I am starting CakePHP which is the MVC opensource which is widely used to develop rapid and user friendly application.

Its uses MVC structure. MVC => Model,View and Controller

Now I give you the basic idea about this framework.

  1. The Model represents the application data
  2. The View renders a presentation of model data
  3. The Controller handles and routes requests made by the client

In cakePHP, the extension of template file is .ctp which is normally not opened in dreamweaver properly. So if you want to open your template files in dreamweaver properly then you have to change extentions in some files. Please follow blow steps to change the extensions :

1. go to C:\Program Files\Adobe\Adobe Dreamweaver CS3\configuration ,open Extensions.txt and at first line at the end please add ,MASTER,THTML,CTP:All Documents

2. in same file add two extentions so it looks like this PHP,PHP3,PHP4,PHP5,TPL,THTML,CTP:PHP Files

Next open the “DocumentTypes” folder and edit the “MMDocumentTypes.xml” file, just open it up using notepad or 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:

  1. winfileextension=”php,php3,php4,php5,thtml,ctp”
  2. macfileextension=”php,php3,php4,php5,thtml,ctp”

After changes, please restart your dreamweaver and after this check the template file in deamweaver. Thats it !

If you like this post then fell free to comment o this.

Thanks !!

  • benmanns

    Thanks! I've been looking for this.

    In CS4/CS5 you have to go to Edit->Preferences->File Types / Editors and add .ctp to the list for “Open in code view:”.

  • http://buildingwebsitesmadesimple.com/dreamweaver-tutorial.html Dreamweaver tutorial

    I have been sourcing out for this code so I would like to thank you for sharing this post to us.

  • K Abdessamad1

    thx man :)

PHP Genious Services

I am a PHP freelancer india, PHP Developer india, PHP programmer india, Wordpress Freelancer india, Wordpress customization services, Wordpress Plugin Developer, Wordpress theme customization, Wordpress plugin customization, Magento Freelancer, Magento Developer india, Magento customization services, Magento theme integration, Opencart Developer india, Zencart Freelancer, Opencart customization, Opencart plugin development, HTML and CSS customization, cakePHP Developer, cakePHP Freelancer india, Ecommerce Developer india

Click Here for

Follow me on Facebook

Categories

Get Adobe Flash playerPlugin by wpburn.com wordpress themes