PHP   发布时间:2022-04-04  发布网站:大佬教程  code.js-code.com
大佬教程收集整理的这篇文章主要介绍了php-Netbeans中的Yii框架-未出现对象方法自动完成大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。

我刚刚注意到,对象方法自动完成功能不会列出要自动完成的方法列表.我在使用$PDO-> bind@R_584_1403@方法时看到了它.通常,我可以在方法箭头之后开始输入“ bi”,并且自动完成功能将直接出现在该方法中.现在,这些方法没有出现,但是我个人定义的类中的方法属性将出现.另外,它说“找不到PHPDoc”.

很奇怪,因为它以前运行良好.我唯一能想到的是,我不得不从Netbeans中删除该项目,然后使用“来自现有资源的新项目”将其恢复.

我需要重新连接的文档文件链接是否断开?我将如何解决这个问题?另外,如果这是一个愚蠢的问题,我们深表歉意.

解决方法:

>代码完成

获取上下文相关的代码完成,请按照下列步骤操作:

Include Yii folder (assuming it is properly placed outside project directory)
    Open "File > Project properties > PHP Include Path" and add the Yii framework root path
Ignore yiilite.PHP to avoid doubled/missing documentation
    Open "Tools > Options > Miscellaneous > Files"
    Add to the front of "Files Ignored by the IDE" the file "^(yiilite\.PHP|CVS|SCCS|...."
    Restart NetBeans
Code completion in view files
    Add the following PHPDoc statement at the head of the file to use code completion in view files. (you may add additional passed parameters as well)

/* @var $this PostController */
/* @var $model Post */
$this->getSomeProValue(); // possible with code completion
$model->author; // possible with code completion

用法

Typing suggestions: Ctrl-Space
Show Function parameters: Ctrl-P
Comment your own code with PHPDoc style. Here's a good example.

大佬总结

以上是大佬教程为你收集整理的php-Netbeans中的Yii框架-未出现对象方法自动完成全部内容,希望文章能够帮你解决php-Netbeans中的Yii框架-未出现对象方法自动完成所遇到的程序开发问题。

如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。

本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。
标签: