codeigniter - 如何将 codeIgniter 与 netbeans 完全集成

标签 codeigniter netbeans netbeans-7 netbeans-8 netbeans-8.1

我下载了 Netbeans 和 CodeIgniter,并为 Netbeans 下载了 2 个插件。其中一个叫做“PHP CI Framework”,我无法安装它。

当我尝试安装它时,我收到以下消息:

The plugin php apis is requested in implementation version 201107282000.

The following plugin is effected:

PHP CI Framework



我还需要安装哪些其他插件才能完全集成 CI,以便在 Netbeans 中获得完整的 Intellisense 和文档支持?

最佳答案

如果您只想自动完成功能,那么这将为您完成。

1)在“源文件”中创建一个名为“自动完成”的 Netbeans 文件夹

2) 在此处创建两个文件,名为 ci_code_completion_controllers.php ci_code_completion_models.php

将此添加到每个文件中;

<?php
/**
********* CONTROLLERS *********
* @property CI_DB_active_record $db
* @property CI_DB_forge $dbforge
* @property CI_Benchmark $benchmark
* @property CI_Calendar $calendar
* @property CI_Cart $cart
* @property CI_Config $config
* @property CI_Controller $controller
* @property CI_Email $email
* @property CI_Encrypt $encrypt
* @property CI_Exceptions $exceptions
* @property CI_Form_validation $form_validation
* @property CI_Ftp $ftp
* @property CI_Hooks $hooks
* @property CI_Image_lib $image_lib
* @property CI_Input $input
* @property CI_Language $language
* @property CI_Loader $load
* @property CI_Log $log
* @property CI_Model $model
* @property CI_Output $output
* @property CI_Pagination $pagination
* @property CI_Parser $parser
* @property CI_Profiler $profiler
* @property CI_Router $router
* @property CI_Session $session
* @property CI_Security $security
* @property CI_Sha1 $sha1
* @property CI_Table $table
* @property CI_Template $template
* @property CI_Trackback $trackback
* @property CI_Typography $typography
* @property CI_Unit_test $unit_test
* @property CI_Upload $upload
* @property CI_URI $uri
* @property CI_User_agent $agent
* @property CI_Validation $validation
* @property CI_Xmlrpc $xmlrpc
* @property CI_Xmlrpcs $xmlrpcs
* @property CI_Zip $zip
* @property Image_Upload $image_upload
* @property Lang_Detect $lang_detect

********* MODELS *********
* @property User_model $user_model
*/

Class CI_Controller {

}
?>

注意:用您自己的填充模型部分。

3) 转到 Netbeans 中项目的属性并转到“PHP 包含路径”设置。
将自动完成文件夹添加到路径中。

4) 所以现在在你的 Controller /模型中尝试输入 $this->load->并点击 Ctrl+空格键 ,您应该会看到可用功能的列表。

关于codeigniter - 如何将 codeIgniter 与 netbeans 完全集成,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9308604/

相关文章:

php - CodeIgniter,了解调用函数的 Controller

mysql - 如何在 codeigniter 中检查不相等

php - 无法从mysql查询获取数据到 Controller

java - 当java中另一个jTextfield为空时如何再次禁用jTextfield

java - 构建失败/然后传入 Netbeans

php - 无法在 Codeigniter 中加载请求的文件 : header. php

java - Unicode JTextArea 从 jar 中显示错误;在netbeans中很好

c++ - 是否可以在 C++ 中使用小程序

netbeans - 为什么我的 Netbeans 不突出显示 PHP/Javascript 中 undefined variable ,但在 Java 中却突出显示?

java - 删除在图像上绘制的矩形