开发者

Aptana autocomplete shows only local stuff

I am trying out Aptana for general PHP development, i loaded an old CakePhp project to test the autocomplete and all i can get are the local 开发者_C百科functions and variable and absolutely none of the inherited ones, which kinda ruins the whole thing. Is there a setting i dont know about that fixes this?


apparently i needed to set up a "Nature" to PHP, the default was some eclipse.something version. Aptana reindexed the file and it works now.


The original poster was correct in adding PHP to the "Nature" of the project, however he did not provide how to do it. I also had the same problem and once I added PHP to the "Nature" selection list the autocomplete provided the options for inherited classess as well.

To add the PHP Nature:

  • Right click on your project in the Project Explorer View
  • Click on Properties
  • In the "Properties for project" window, select Project Natures in the left list box
  • In the Project Natures window, place a tick next to PHP
  • Click on OK button

that should get you the autocomplete list.

AJ


I haven't used aptana for PHP, but since it's based on Eclipse I assume the cake folder (in the same level as your app folder usually) needs to be added to your project path.

You can go into the properties of your project and either add it to the path or add it to the libraries.

I usually setup my project to point to the whole folder so I don't need need to do this step, but my Eclipse installation will pick up the inherited methods just fine.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜