我下载了 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/