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.
精彩评论