开发者

cakephp code completion in Netbeans with "$this->" before a Helper

Code completion works only if I use:

/* @var $html HtmlHelper  */

$html->link...

but I want it to work while using

$this->开发者_开发技巧Html->...

any idea?


This won't be possible with the current setup. If you want code completion like that, you could put the following at the top of your class (in the constructor maybe).

if (false) {
   $this->Html  = new HtmlHelper();
}

This will give you autocompletion, and since the IF condition never evaluates to TRUE it won't mess up your code.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜