如何在 PHPStorm 中为 CodeIgniter 框架启用自动完成 [英] How to enable Auto Complete in PHPStorm for CodeIgniter framework

查看:25
本文介绍了如何在 PHPStorm 中为 CodeIgniter 框架启用自动完成的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在 CodeIgniter 项目中,我通常使用以下命令来执行 sql.

In CodeIgniter Project, I've normally use following commands to execute sql.

$res = $this->db->select('*')
                 ->from('customer')
                 ->where('customer.id', $id)
                 ->get();

可惜我的 PHP Storm(5.0) 不支持多重自动完成(我不知道怎么说)

But unfortunatly my PHP Storm(5.0) didn't support multiple autocomplete(I don't know how to say this)

例如在 netbeans 如果我输入

For example in netbeans If I typed

$res = $this->db->select('*')->

它会自动弹出其余的功能.但是在 PHPStorm 中它没有起作用.它仅工作在第一级自动完成.

It will auto pop up the rest of the function. But In PHPStorm It didn't wokring. Its working first level auto complete only.

推荐答案

下载 https://github.com/topdown/phpStorm-CC-Helpers/releases

标记为纯文本

  • /system/core/Controller.php
  • /system/core/Model.php
  • /system/database/DB_active_rec.php

然后解压下载的存档,复制到你的项目根目录

Then Extract the downloaded archive, copy it to your project root

仅此而已Mifas 链接也做同样的事情

That's all Mifas links do the same too though

这篇关于如何在 PHPStorm 中为 CodeIgniter 框架启用自动完成的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆