开发者

Mongo autocomplete in Zend Studio

Does anyone know how to get auto complete for MongoDB to work in Zend Studio 8. What would actually be an ideal solution is how to add autocomplete for any binary library not in the form of php files.

I.E. I know how to add a folder of php classes to the include path to get autocompletion, but mongo is a php plugin and not a collection of class files. Possible there is a way to generate php files for 开发者_开发技巧Zend to use.

Any help would be appreciated.


At first you go here to see that there's a guy who has written a "reflector" of php classes which dumps the contents of a class to a file with phpdoc comments. Also there's a link to sources where mongo.php is present as an example.

You can put that mongo.php into a folder and then in Zend Studio right-click a project, select "properties", go into "php include path -> libraries", click "add external source folder" and point to the folder with the mongo.php.

Mongo autocomplete in Zend Studio

Voila, zend studio has autocompleting enabled now for MongoDB classes!

Don't know whether that mongo.php is up to date, but I'm using it without a problem.

I've put its code here just for a case.


Probably a bit late answer, but it would be better than nothing ;)

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜