Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
menu search
person
Welcome To Ask or Share your Answers For Others

Categories

Netbeans is giving me poor autocomplete results when working with Zend Framework.

Is there a way that I could work with Netbeans and get a very good level of autocompletion, or am I better off switching to a framework that Netbeans perhaps provides a better autocomplete results for, such as CodeIgniter?

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
752 views
Welcome To Ask or Share your Answers For Others

1 Answer

netbeans uses phpDocumentor to provide inline docs for its code completion. In order to do this it needs access to the code files where the doc blocks are. In your case the Zend Framework code.

When you set up your project you need to tell netbeans where these files are located. Each project in netbeans has an include path folder like this

netbeans screen shot

If you right click on this and click 'properties' you will be taken to a dialogue that allows you to add code from outside your project to the include path.

netbeans screen shot

Add the library/Zend folder to this dialogue so that you get something like this:-

netbeans screen shot

This should allow netbeans to give you code completion for ZF. The finished result:-

Code completion screen shot

Check the netbeans documentation for more information.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
...