Welcome Guest, Not a member yet? Register   Sign In
Netbeans 7.0 (final) autocomplete for CI 2.0
#1

[eluser]REK[/eluser]
I was able get autocomplete to work correctly within Netbeans 7.0 (final).

Instructions:

1. Create a new directory inside nbproject (I used this since it's omitted when pushing to prod) with your name of choice, I used "CI_Autocomplete".

2. Create a new file with your name of choice, I used "CI_Autocomplete_2.0.php", and place it inside the newly created folder, "nbproject\CI_Autocomplete".

3. Paste the below code inside the new file, "CI_Autocomplete_2.0.php". File content courtesy of http://ellislab.com/forums/viewthread/180079/.
Code:
<?php

/**
* @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_Sha1 $sha1
* @property CI_Table $table
* @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 $user_agent
* @property CI_Validation $validation
* @property CI_Xmlrpc $xmlrpc
* @property CI_Xmlrpcs $xmlrpcs
* @property CI_Zip $zip
*/

class CI_Controller {};

/**
* @property CI_DB_active_record $db
* @property CI_DB_forge $dbforge
* @property CI_Config $config
* @property CI_Loader $load
* @property CI_Session $session
*/

class CI_Model {};

?>

4. Now go to (this is for OSX so not sure if it's the same for Windows) File > Project Properties (projectname) > PHP Include Path and include the new folder you created above, nbproject\CI_Autocomplete.

5. Restart your project and autocomplete "should" work.


Messages In This Thread
Netbeans 7.0 (final) autocomplete for CI 2.0 - by El Forum - 05-02-2011, 09:39 PM
Netbeans 7.0 (final) autocomplete for CI 2.0 - by El Forum - 05-02-2011, 11:22 PM
Netbeans 7.0 (final) autocomplete for CI 2.0 - by El Forum - 05-03-2011, 07:07 AM
Netbeans 7.0 (final) autocomplete for CI 2.0 - by El Forum - 05-03-2011, 08:45 AM
Netbeans 7.0 (final) autocomplete for CI 2.0 - by El Forum - 05-03-2011, 09:43 AM
Netbeans 7.0 (final) autocomplete for CI 2.0 - by El Forum - 05-03-2011, 09:51 AM
Netbeans 7.0 (final) autocomplete for CI 2.0 - by El Forum - 05-03-2011, 12:19 PM
Netbeans 7.0 (final) autocomplete for CI 2.0 - by El Forum - 05-09-2011, 02:31 AM
Netbeans 7.0 (final) autocomplete for CI 2.0 - by El Forum - 05-09-2011, 06:48 AM
Netbeans 7.0 (final) autocomplete for CI 2.0 - by El Forum - 05-09-2011, 11:26 AM
Netbeans 7.0 (final) autocomplete for CI 2.0 - by El Forum - 05-09-2011, 11:38 AM
Netbeans 7.0 (final) autocomplete for CI 2.0 - by El Forum - 05-09-2011, 08:40 PM
Netbeans 7.0 (final) autocomplete for CI 2.0 - by El Forum - 05-12-2011, 11:32 AM
Netbeans 7.0 (final) autocomplete for CI 2.0 - by El Forum - 05-13-2011, 05:35 PM
Netbeans 7.0 (final) autocomplete for CI 2.0 - by El Forum - 05-14-2011, 05:54 PM
Netbeans 7.0 (final) autocomplete for CI 2.0 - by El Forum - 05-19-2011, 03:45 PM
Netbeans 7.0 (final) autocomplete for CI 2.0 - by El Forum - 05-19-2011, 03:49 PM
Netbeans 7.0 (final) autocomplete for CI 2.0 - by El Forum - 05-27-2011, 03:42 PM
Netbeans 7.0 (final) autocomplete for CI 2.0 - by El Forum - 07-25-2011, 09:10 PM
Netbeans 7.0 (final) autocomplete for CI 2.0 - by El Forum - 08-05-2011, 08:00 AM
Netbeans 7.0 (final) autocomplete for CI 2.0 - by El Forum - 08-09-2011, 01:11 AM
Netbeans 7.0 (final) autocomplete for CI 2.0 - by El Forum - 08-10-2011, 12:34 AM
Netbeans 7.0 (final) autocomplete for CI 2.0 - by El Forum - 08-10-2011, 12:57 AM
Netbeans 7.0 (final) autocomplete for CI 2.0 - by El Forum - 08-10-2011, 08:46 PM
Netbeans 7.0 (final) autocomplete for CI 2.0 - by El Forum - 02-08-2012, 03:30 AM
Netbeans 7.0 (final) autocomplete for CI 2.0 - by El Forum - 02-16-2012, 05:34 AM
Netbeans 7.0 (final) autocomplete for CI 2.0 - by El Forum - 02-16-2012, 05:41 AM
Netbeans 7.0 (final) autocomplete for CI 2.0 - by El Forum - 07-30-2012, 05:18 AM
Netbeans 7.0 (final) autocomplete for CI 2.0 - by El Forum - 07-30-2012, 09:00 AM
Netbeans 7.0 (final) autocomplete for CI 2.0 - by El Forum - 07-30-2012, 10:42 AM
Netbeans 7.0 (final) autocomplete for CI 2.0 - by El Forum - 07-30-2012, 01:36 PM
Netbeans 7.0 (final) autocomplete for CI 2.0 - by El Forum - 07-31-2012, 12:51 AM
Netbeans 7.0 (final) autocomplete for CI 2.0 - by El Forum - 10-04-2012, 08:49 PM
Netbeans 7.0 (final) autocomplete for CI 2.0 - by El Forum - 10-13-2012, 07:21 PM
Netbeans 7.0 (final) autocomplete for CI 2.0 - by El Forum - 10-04-2013, 02:38 PM



Theme © iAndrew 2016 - Forum software by © MyBB