如何将 codeIgniter 与 netbeans 完全集成 [英] How to integrate codeIgniter with netbeans fully

查看:25
本文介绍了如何将 codeIgniter 与 netbeans 完全集成的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

I downloaded Netbeans and CodeIgniter, and I downloaded 2 plugins for Netbeans. On of them is called "PHP CI Framework" and I can't install it.

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

When I try to install it I get this message:

插件php apis在201107282000实现版本中请求.

The plugin php apis is requested in implementation version 201107282000.

以下插件生效:

PHP CI 框架

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

What other plugin do I need to install for CI to be fully integrated so that I will have full Intellisense and documentation support in Netbeans?

推荐答案

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

If you just want auto-complete of functions then this will do it for you.

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

1) Create a folder in Netbeans called 'autocomplete' in 'Source Files'

2) 在此处创建两个名为 ci_code_completion_controllers.phpci_code_completion_models.php

2) Create two files in here called something like ci_code_completion_controllers.php and ci_code_completion_models.php

将此添加到每个文件中;

Add this into each file;

<?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 {

}
?>

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

Note: populate the Models section with your own.

3) 转到 Netbeans 中项目的 属性,然后转到PHP 包含路径"设置.将自动完成文件夹添加到路径中.

3) Goto to the properties of your project in Netbeans and goto the 'PHP Include Path' setting. Add the autocomplete folder to the path.

4) 所以现在在你的控制器/模型中尝试输入 $this->load-> 并点击 Ctrl+spacebar,你应该看到一个可用的列表功能.

4) So now in your controllers/model try typing $this->load-> and hit Ctrl+spacebar, you should see a list of avaiable functions.

这篇关于如何将 codeIgniter 与 netbeans 完全集成的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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