Thursday, March 10, 2011

CakePHP, Eclipse PHP plugin initial setting....configure .ctp file in Eclipse

I already had Eclipse 3.6 but not PHP development environment.

PHP development environment in Eclipse is called PDT.
I followed the instruction in the following page.
http://wiki.eclipse.org/PDT/Installation#From_Update_Site

Then, I wanted to use Aptana plugin.
I found the instructions in the following page.
http://docs.aptana.com/docs/index.php/Plugging_Aptana_into_an_existing_Eclipse_configuration

Now,  you want to configure .ctp(view) files in Eclipse as php files.
  • Firstly open the  Eclipse workspace.
  • Now go to Preferences from Window menu.
  • From Preference click on the General tab from the list.
  • Now click on Content-Types under General  tab.
  • On the right panel in the Content-Types, expand the Text tab.
  • Select PHP Content-Types .
  • Now click on the Add button and type the fie extension e.g. *.ctp in the content type input field.

No comments:

Post a Comment