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:
The plugin php apis is requested in implementation version 201107282000.
The following plugin is effected:
PHP CI Framework
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?
It would be easier to run the Codeigniter application in browser when we use an IDE like Netbeans; we simply do right click on the project and click on Run to run the application on browser. We can also choose the preferred browser from the Browser Options in Netbeans.
Salut ! I personnally use NetBeans 11 as main IDE, but it's seems that the plugin for CI is abandoned (not touched since 2016 on github). I still tried to install by following this tuto : Customize Netbeans IDE for CodeIgniter.
Go to Tools menu in Netbeans , then choose Plug-in, and then select the Settings tab. 2. Click on the Add button on the window 3. Type any name (or CI ) you find appropriate, and for the URL paste one of these links depending on your NetBeans version, and click Ok.
I use NetBeans 10 with CI3 & 4 just fine. Out of the box, it has code completion, support for PHP7, etc. Thanks. Yeah after a restart everything looks good (so far).
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'
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) Goto to the properties of your project in Netbeans and goto the 'PHP Include Path' setting. 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.
For NetBeans 8.1+
Goto: https://github.com/nbphpcouncil/nb-ci-plugin/releases
Download NB CI Plugins (latest release):
Install Plugins: Tools >> Plugins >> Downloaded (tab) >> Add Plugins... >> (browse those downloaded files in your local directory) >> Open >> Install >> Restart 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
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)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With