使用 yii 框架的项目中的代码完成
我的项目中存在代码完成问题。我使用 yii 框架,所有 lib 文件都已添加到包含路径中。
以下屏幕截图将让您明白我的意思:
- 当我按 ctrl+space 查看 Yii 环境变量时,我得到以下结果:
http://tablica.rzeszow.pl/images/screen1.jpg
- 在其他 php ide (jetbrains|eclipse pdt|netbeans) 中它运行良好,如下所示屏幕:
http://tablica.rzeszow.pl/images/screen3.jpg
我配置了正确包含路径(只需在 PHP Buildpath 中添加 Lib)。 有什么想法如何配置(或者可能有路径)Aptana 来“see Yii::app()”代码完成?
I have a problem with code completion in my project. I use yii framework, and all lib files has been added into include path.
Following screenshoots will how you what i mean:
- When i press ctrl+space to view Yii env variables i get following result:
http://tablica.rzeszow.pl/images/screen1.jpg
- In other php ide (jetbrains|eclipse pdt|netbeans) it works good, as on following screen:
http://tablica.rzeszow.pl/images/screen3.jpg
I configured include path correctly (just add Lib in PHP Buildpath).
Any ideas how to configure (or maybe there are pathes) Aptana to "see Yii::app()" code completion?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
确保您不包含 yiilite.php,因为 PHPDoc(自动完成所需)等已在此文件中删除。
Make sure you do not include yiilite.php as the PHPDoc (needed for autocomplete) etc has been stripped in this file.
http://firas-vision.com/aptana-yii-2/
请检查这个解决方案对我有用,没有新插件,它只是 com.aptana.editor.php.jar 插件的代码修复
我在 Aptana git 上提出了更改请求,希望他们会在下一个版本中包含此修复
http://firas-vision.com/aptana-yii-2/
please check this solution worked for me , no new plugin , it is just a code fix for com.aptana.editor.php.jar plugin
I pulled a request to change on Aptana git , hope they will include this fix in the next release