I am using the following code in NetBeans PHP IDE.

/* @var $DB Database */

The problem is everytime I use $DB I had to include this line for auto complete to work. Is it possible to create a universal line so as to avoid adding it everytime?

没有正确的解决方案

其他提示

Is $DB a global variable? If so, and you have your include_path configured in your IDE's project so that it knows where $DB originates, then autocomplete would work for it.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top