Question

Je Netbeans et téléchargé CodeIgniter, et je l'ai téléchargé 2 plug-ins pour Netbeans. Sur d'eux est appelé « PHP Framework CI » et je ne peux pas l'installer.

Quand j'essaie de l'installer, je reçois ce message:

Le plugin php apis est demandé dans la version de mise en œuvre 201107282000.

Le module suivant est effectué:

PHP Framework CI

Quels sont les autres plug-in dois-je installer pour CI être entièrement intégré pour que j'aurai soutien IntelliSense et de la documentation dans Netbeans?

Était-ce utile?

La solution

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.

Autres conseils

For NetBeans 8.1+

Goto: https://github.com/nbphpcouncil/nb-ci-plugin/releases

Download NB CI Plugins (latest release):

  1. org-nbphpcouncil-modules-php-ci-0.5.1.nbm
  2. org-nbphpcouncil-modules-php-ci-repository-0.5.1.nbm

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. :)

enter image description here

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)

enter image description here enter image description here

hope you are using the version of 7.1.2 better use the 7.1.1 so that you can avoid these kind of error it worked for me or better to use same version plugin for the same IDE of netbeans you are using

I just followed this steps:

  1. Download CodeIgniter.3.X.X.zip
  2. Unzip the content into the root of your PHP project in Netbeans file structure with codeIgniter
  3. Run your project, you will see the Welcome page from CodeIgniter
Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top