Get Netbeans to Auto-suggest Zend Framework components

一笑奈何 提交于 2019-12-13 17:55:01

问题


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

Or when I try to use:

Zend_Registry::getInstance();

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.


回答1:


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.



来源:https://stackoverflow.com/questions/10096728/get-netbeans-to-auto-suggest-zend-framework-components

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!