Sunday, October 23, 2011

CakePHP and Eclipse

To set up your version of Eclipse to read either file type, follow these steps:
  • Go to Window > Preferences > General > Content types
  • In the content types window navigate the tree to text > PHP content type
  • Click add
  • Enter *.ctp or *.thtml depending on what version of CakePHP you use. It might be best to add both – just in case.
  • Now navigate to Editors > File Associations
  • Enter *.ctp or *.thtml depending on what version of CakePHP you use.
  • Under “Associated Editors:”, select the PHP Editor and click Default.

No comments:

Post a Comment