简体   繁体   English

Codeigniter + phpstorm外部库自动完成?

[英]Codeigniter+phpstorm external library autocomplete?

I'm just trying phpStorm with codeigniter. 我只是用codeigniter尝试phpStorm。

I was looking for autocompletition so I found https://github.com/topdown/phpStorm-CC-Helpers 我一直在寻找自动完成功能,因此找到了https://github.com/topdown/phpStorm-CC-Helpers

I did it and it works great ! 我做到了,效果很好!

Then I installed the Stencil library for codeigniter. 然后,我安装了用于codeigniter的Stencil库。

The library works great but I haven't any autocomplete with it... 该库很好用,但是我没有任何自动完成功能...

I added "* @property CI_Stencil $stencil" in /system/core/model.php, controler.php and in CI_phpStorm.php in the root folder. 我在/system/core/model.php、controler.php和CI_phpStorm.php的根文件夹中添加了“ * @property CI_Stencil $ stencil”。

Does someone have an idea why I got autocompletition with the core function of Codeigniter but not with the added libraries ? 有人知道为什么我会使用Codeigniter的核心功能而不是添加的库来自动完成吗?

Thx ! 谢谢 !

I ran into the same problem, and I was able to get it to work by adding 我遇到了同样的问题,通过添加

* @property Stencil $Stencil

to MY_Controller 到MY_Controller

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM