使Netbeans成为自动建议的Zend Framework组件 [英] Get Netbeans to Auto-suggest Zend Framework components
问题描述
我最近安装了ZF,并且在使用它时没有任何问题,但是当我在Netbeans中工作时,我希望它能够识别和建议ZF组件.例如,当我输入:
I've recently installed ZF, and haven't had any issues using it, however when I'm working in Netbeans, I'd like for it to recognize and suggest ZF components. For example, when I type:
$config = new Zend_
我希望它自动完成或建议:
I want it to auto-complete or suggest:
Zend_Registry
或者当我尝试使用时:
Zend_Registry::getInstance();
我希望Netbeans自动建议getInstance并识别它的文档.我认为这与将库包含在应用程序中有关,但是我不确定该在哪里设置?我在php.ini中为include_path设置了库,并且组件在浏览器中按预期工作,所以那里没有问题.
I'd like for Netbeans to auto-suggest getInstance and recognize documentation for it. I figure it has something to do with including the library inside the application, but I'm not sure where exactly to set this? I have the library set for include_path inside php.ini, and the components work as expected in the browser, so no issues there.
推荐答案
在Netbeans菜单中,在General
选项卡Global Include Path
部分下的Tools > Options > PHP
中,单击Add Folder
.从库中添加Zend
文件夹,确认所有内容.让Netbeans完成扫描就可以了.
In Netbeans menu go Tools > Options > PHP
under General
tab Global Include Path
section click Add Folder
. Add Zend
folder from your library, confirm everything. Let Netbeans finish scanning and you're done.
这篇关于使Netbeans成为自动建议的Zend Framework组件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!