IDE代码提示

把framework\YiiBase.php中的第116行


* @return CApplication the application singleton, null if the singleton has not been created yet.

改成


* @return CWebApplication the application singleton, null if the singleton has not been created yet.

这样在写代码的时候Yii::app()->就多出了很多CWebApplicion的提示项(我用的是NetBeans),因为平时写CWebApplication多一些而几乎没有写CConsoleApplication,所以改这一点就没什么影响了。

顶起

真的?试试哦!

我的是122行 1.1.6版本

问一句,这个是netbeans的特性吗?

用不着那么麻烦吧?eclipse 里新建的项目的include lib加yii的framework目录就可以了啊。

试试。。

eclipse 加了library 也没用,yii::app()-> 根本不提示

修改YiiBase.php 那行也不提示

只要 NB 包含 YII 的路径 就可以提示了啊。

如果yii不在项目中,可以在包含路径中包含进来!