[英]How to integrate codeIgniter with netbeans fully
I downloaded Netbeans and CodeIgniter, and I downloaded 2 plugins for Netbeans. 我下载了Netbeans和CodeIgniter,我为Netbeans下载了2个插件。 On of them is called "PHP CI Framework" and I can't install it.
在他们身上被称为“PHP CI框架”,我无法安装它。
When I try to install it I get this message: 当我尝试安装它时,我收到以下消息:
The plugin php apis is requested in implementation version 201107282000.
实现版本201107282000中请求插件php apis。
The following plugin is effected:
以下插件实现:
PHP CI Framework
PHP CI框架
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? 我需要安装什么其他插件才能完全集成CI,以便在Netbeans中获得完整的Intellisense和文档支持?
If you just want auto-complete of functions then this will do it for you. 如果您只想自动完成功能,那么这将为您完成。
1) Create a folder in Netbeans called ' autocomplete ' in ' Source Files ' 1)在Netbeans中创建一个名为' 自动完成 '的文件夹,在' 源文件 '中
2) Create two files in here called something like ci_code_completion_controllers.php and ci_code_completion_models.php 2)在这里创建两个文件,例如ci_code_completion_controllers.php和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) Goto to the properties of your project in Netbeans and goto the ' PHP Include Path ' setting. 3)转到Netbeans中项目的属性并转到' PHP Include Path '设置。 Add the autocomplete folder to the path.
将自动完成文件夹添加到路径中。
4) So now in your controllers/model try typing $this->load->
and hit Ctrl+spacebar , you should see a list of avaiable functions. 4)所以现在在你的控制器/模型中尝试键入
$this->load->
并按Ctrl +空格键 ,你应该看到一个可用函数列表。
For NetBeans 8.1+
对于NetBeans 8.1+
Goto: https://github.com/nbphpcouncil/nb-ci-plugin/releases 转到: https : //github.com/nbphpcouncil/nb-ci-plugin/releases
Download NB CI Plugins (latest release): 下载NB CI插件(最新版本):
Install Plugins: Tools >> Plugins >> Downloaded (tab) >> Add Plugins... >> (browse those downloaded files in your local directory) >> Open >> Install >> Restart NB 安装插件:工具>>插件>>下载(选项卡)>>添加插件... >>(浏览本地目录中下载的文件)>>打开>>安装>>重启NB
Activate CI Framework: Tools >> Options >> PHP >> Frameworks & Tools (tab) >> select CodeIgniter >> Base Files >> Add Zip... >> now type a name and browse for CodeIgniter's zip file you downloaded >> OK >> OK >> Restart NB 激活CI框架:工具>>选项>> PHP >>框架和工具(选项卡)>>选择CodeIgniter >>基础文件>>添加Zip ... >>现在输入名称并浏览您下载的CodeIgniter的zip文件>> OK >> OK >>重启NB
All Done. 全部完成。 :)
:)
Activate CI framework in existing project: Select your project >> Right click >> Properties >> Expand Frameworks >> select CodeIgniter >> tick on Enabled >> OK (Now you'll see a CI logo followed by your project name) 激活现有项目中的CI框架:选择项目>>右键单击>>属性>>展开框架>>选择CodeIgniter >>勾选启用>>确定(现在您将看到CI徽标后跟您的项目名称)
试试这个: Netbeans的CodeIgniter插件
希望你使用7.1.2的版本更好地使用7.1.1,以便你可以避免这些错误,它对我有用或更好地使用相同的版本插件为你正在使用的netbeans相同的IDE
I just followed this steps: 我只是按照这个步骤:
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.