EllisLab text mark
Advanced Search
2 of 3
2
   
Netbeans 7.0 (final) autocomplete for CI 2.0
Posted: 19 May 2011 06:49 PM   [ Ignore ]   [ # 16 ]   [ Rating: 0 ]
Avatar
Joined: 2009-12-08
1804 posts

http://netbeans.org/kb/docs/php/project-setup.html#phpIncludePath

 Signature 

@basdflasjk | BitAuth: Authentication and Role-based Permissions | Session Library Replacement


Please read the User Guide! (Upgrading from a previous version?)

 
Posted: 27 May 2011 06:42 PM   [ Ignore ]   [ # 17 ]   [ Rating: 0 ]
Joined: 2011-04-13
9 posts

what about codeigniter 2.02 with eclipse?

 
Posted: 26 July 2011 12:10 AM   [ Ignore ]   [ # 18 ]   [ Rating: 0 ]
Joined: 2010-02-05
3 posts

cool, thanks
This is what i am searching for…

 
Posted: 05 August 2011 11:00 AM   [ Ignore ]   [ # 19 ]   [ Rating: 0 ]
Avatar
Joined: 2009-03-17
29 posts

Thanks for the old news

 Signature 

Yoosuf
CodeIgniter and Rails Development: Magpie Lab http://magpielab.com

 
Posted: 09 August 2011 04:11 AM   [ Ignore ]   [ # 20 ]   [ Rating: 0 ]
Joined: 2009-04-30
2 posts

Thanks for this tutorial
this i need

 
Posted: 10 August 2011 03:34 AM   [ Ignore ]   [ # 21 ]   [ Rating: 0 ]
Avatar
Joined: 2011-08-10
2 posts

Thank you very much REK smile

 
Posted: 10 August 2011 03:57 AM   [ Ignore ]   [ # 22 ]   [ Rating: 0 ]
Joined: 2011-06-17
5 posts

l like it vary much
http://www.ibjrc.com

 
Posted: 10 August 2011 11:46 PM   [ Ignore ]   [ # 23 ]   [ Rating: 0 ]
Joined: 2009-03-30
1301 posts

Why is that some IDE can do this automatically without having to load anything for autocomplete. I use netbeans on a ubuntu laptop and like it, just not as much as the windows IDE I use on my desktop. Some of them will automatically add new functions/models/controllers with no need to add the properties in a project file. I just think I shouldn’t have to add a property for every model/controller/library/class/helper I create. That’s just in CI, let alone coding for Wordpress, Zencart,jQuery, and etc.

I guess I was just hoping real autocomplete was in Netbeans.

 
Posted: 03 September 2011 01:21 PM   [ Ignore ]   [ # 24 ]   [ Rating: 0 ]
Joined: 2010-07-15
22 posts

this work if i put nbproject into website folder.
but this is not work if i put nbproject outside ‘website’ folder.

 Signature 

ooooooooo

 
Posted: 06 September 2011 03:16 PM   [ Ignore ]   [ # 25 ]   [ Rating: 0 ]
Joined: 2011-08-05
4 posts
Abdelouahab - 27 May 2011 10:42 PM

what about codeigniter 2.02 with eclipse?

Here’s a quick guide—very similar, but a bit more “integrated” solution than the original post imo.
http://sidewaysforward.com/2011/09/03/php-code-completion-for-anything-in-eclipse-pdt/

 
Posted: 15 November 2011 02:41 PM   [ Ignore ]   [ # 26 ]   [ Rating: 0 ]
Joined: 2011-11-15
2 posts

Hi! I would like to add my part to the forum.

I got this code completion feature working on NetBeans 7.0.1. As told before, I first created a new folder in the /nbproject folder called CI_Autcomplete. Second, I created a file in it named CI_Autocomplete_2.0.php and copied the coded as shown before:

<?php

/**
* @property CI_DB_active_record $db
* @property CI_DB_forge $dbforge
* @property CI_Benchmark $benchmark
...
*/
class CI_Controller {};

/**
* @property CI_DB_active_record $db
* @property CI_DB_forge $dbforge
...
*/
class CI_Model {}

I added the folder to the “Include Path” (right click on the “Include Path” icon, then “Properties”, then add the mentioned folder to the PHP Include Path)

Then I was figuring out how to add code completion for a custom class I used, placed on the application/library folder. After looking and trying, I got the way to do so. Let’s say you have a Foo_class (application/library/Foo_class.php). If you want that class available for code completion in your controller, just add the following:

<?php

/**
* @property CI_DB_active_record $db
* @property CI_DB_forge $dbforge
* @property CI_Benchmark $benchmark
...
* @property Foo_class $foo_class
*/
class CI_Controller {};

/**
* @property CI_DB_active_record $db
* @property CI_DB_forge $dbforge
...
*/
class CI_Model {}

And that’s it! Just document your code and everything will be fine. Hope it helps someone in the community.

(NetBeans 7.0.1, CodeIgniter 2.0.3)

 
Posted: 28 November 2011 01:59 AM   [ Ignore ]   [ # 27 ]   [ Rating: 0 ]
Avatar
Joined: 2010-10-22
12 posts

thanks dude

 Signature 

i do not see any stop point

 
Posted: 30 December 2011 12:19 AM   [ Ignore ]   [ # 28 ]   [ Rating: 0 ]
Joined: 2011-07-27
3 posts

This is Autocomplete of my version.

<?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

* Some of my lib example
* @property Auth $auth
* @property Row_locking $row_locking
* @property Crud $crud
*
*/

class CI_Controller {};

class 
CI_DB_Driver {
 
/**
  * Execute the query
  *
  * Accepts an SQL string as input and returns a result object upon
  * successful execution of a "read" type query.  Returns boolean TRUE
  * upon successful execution of a "write" type query. Returns boolean
  * FALSE upon failure, and if the $db_debug variable is set to TRUE
  * will raise an error.
  *
  * @access public
  * @param string An SQL query string
  * @param array An array of binding data
  * @return CI_DB_mysql_result
  */
 
function query() {}
}
;

/**
* @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 {};

/**
 * @return CI_Controller
 */
function &get;_instance() {} 

Change get;_instance to get_instance. I think this is bug of this board.

at class CI_DB_Driver. I use Mysql so I add this code for I use autocomplete “Generating Query Results”. http://ellislab.com/codeigniter/user-guide/database/results.html

You can change @return to another DB Driver such as mssql, pdo, odbc etc..

Another is get_instance for use Autocomplete in My Libraly.

smile

 
Posted: 08 February 2012 06:30 AM   [ Ignore ]   [ # 29 ]   [ Rating: 0 ]
Joined: 2012-02-08
1 posts

This is still not working for me. Could anybody please help?
I am following a tutorial here and when I am typing

CI_CONTROLLER 
I am not getting the same result as he does at 7:15, instead I am getting
CI_Controller::get_instance() 

I have set up the automplete file as the first post describes, and I have used the code from the above post , but I am still having no luck.
Could anyone help this noob out please?
Thanks guys

 
Posted: 16 February 2012 08:34 AM   [ Ignore ]   [ # 30 ]   [ Rating: 0 ]
Joined: 2011-07-26
1 posts

Kohana is better.

 
2 of 3
2