Zend Studio and Drupal

廉价感情. 提交于 2019-12-13 05:13:47

问题


Hi I am trying out Zend Studio for Drupal module development. Of course, my module code does not explicitly include Drupal files (since obviously it runs under the Drupal bootstrap context.)

I want Zend to recognize this and resolve function calls to the appropriate Drupal files. I tried adding the Drupal source files under Build Path>Link Source. I then get this message:

"Creating the folder will result in a conflict: Cannot nest 'subsites/drupal-6.20' inside 'myproject'. To enable the nesting exclude 'drupal-6.20/' from 'myproject' .

Of course, if I exclude drupal-6.20 folder that defeats the purpose. How can I do this?


回答1:


right click project > properties > PHP Include Path > Libraries > Add External Source Folder > select the folder where drupal is installed




回答2:


For Zend Studio 10.0 goto

1) Windows -> Preferences -> General (in window that open) -> Content Type -> Text (in side pane) -> %content-type.name.0 -> Add.. (in pane below)

a popup up window appear for you to add any extension you wish to add in.

Restart Zend and you are good to play ...



来源:https://stackoverflow.com/questions/5491904/zend-studio-and-drupal

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