How to set up Netbeans autocomplete with Zend Framework?(如何使用 Zend Framework 设置 Netbeans 自动完成功能?)
问题描述
在使用 Zend Framework 时,Netbeans 给我的自动完成结果很差.
有没有一种方法可以让我使用 Netbeans 并获得非常好的自动完成水平,或者我最好切换到 Netbeans 可能为其提供更好的自动完成结果的框架,例如 CodeIgniter?
netbeans 使用 了解更多信息.
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?
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
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.
Add the library/Zend
folder to this dialogue so that you get something like this:-
This should allow netbeans to give you code completion for ZF. The finished result:-
Check the netbeans documentation for more information.
这篇关于如何使用 Zend Framework 设置 Netbeans 自动完成功能?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:如何使用 Zend Framework 设置 Netbeans 自动完成功能?
基础教程推荐
- phpmyadmin 错误“#1062 - 密钥 1 的重复条目‘1’" 2022-01-01
- 如何在 XAMPP 上启用 mysqli? 2021-01-01
- 找不到类“AppHttpControllersDB",我也无法使用新模型 2022-01-01
- Doctrine 2 - 在多对多关系中记录更改 2022-01-01
- 如何在 Symfony 和 Doctrine 中实现多对多和一对多? 2022-01-01
- HTTP 与 FTP 上传 2021-01-01
- PHP 守护进程/worker 环境 2022-01-01
- 在 yii2 中迁移时出现异常“找不到驱动程序" 2022-01-01
- 使用 PDO 转义列名 2021-01-01
- 在 CakePHP 2.0 中使用 Html Helper 时未定义的变量 2021-01-01