Studio中PHP扩展的代码完成

Studio中PHP扩展的代码完成

本文介绍了Zend Studio中PHP扩展的代码完成?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

从PECL安装HTTP扩展名之后,我希望Zend Studio 6能够识别提供的HTTP *类并提供代码完成功能.但是,事实并非如此.如何使Zend Studio识别PHP扩展提供的类?具体来说,我希望能够在这些类上使用代码竞争.

After having installed the HTTP extension from PECL, I expected Zend Studio 6 to recognize the provided HTTP* classes and for code completion to be made available. This is not the case, however. How do I get Zend Studio to recognize classes provided by PHP extensions? Specifcally, I want to be able to use code competition on these classes.

推荐答案

我使用了Michael Spector的phpgenerator.php脚本.它会生成一个php文档文件夹,其中包含您PC上已加载的扩展名.之后,可以将文档路径添加到Eclipse(Zend Studio)包含路径.代码完成的工作就像一种魅力.

I used the phpgenerator.php script from Michael Spector. It generates a php documentation folder with the loaded extensions on your pc. Afterwards the doc path can be added to the Eclipse (Zend Studio) include path. Code Completion works like a charm.

用法:

console: php phpgenerator.php $path_to_doc_output

http://dev.eclipse.org/viewcvs/viewvc.cgi/org.eclipse.pdt/plugins/org.eclipse.php.core/Resources/language/?root=Tools_Project

这篇关于Zend Studio中PHP扩展的代码完成?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-02 07:06