Welcome Guest, Not a member yet? Register   Sign In
codeignitier and eclipse
#30

[eluser]outrage[/eluser]
I found this somewhere quite some time ago. Can't remember who came up with it though sorry.

Try making a MY_Controller.php like the example below and place it in application->libraries
It will help with code completion whatever IDE you use.

Code:
<?php  if (!defined('BASEPATH')) exit('No direct script access allowed');

class MY_Controller extends Controller {

    /**
     * @var CI_Benchmark
     */
    var $benchmark;

    /**
     * @var CI_Calendar
     */
    var $calendar;

    /**
     * @var CI_Config
     */
    var $config;

    /**
     * @var CI_Email
     */
    var $email;

    /**
     * @var CI_Encrypt
     */
    var $encrypt;

    /**
     * @var CI_Ftp
     */
    var $ftp;

    /**
     * @var CI_Image_lib
     */
    var $image_lib;

    /**
     * @var CI_Input
     */
    var $input;

    /**
     * @var CI_Language
     */
    var $language;

    /**
     * @var CI_Loader
     */
    var $load;

    /**
     * @var CI_Output
     */
    var $output;

    /**
     * @var CI_Pagination
     */
    var $pagination;

    /**
     * @var CI_Parser
     */
    var $parser;

    /**
     * @var CI_Session
     */
    var $session;

    /**
     * @var CI_Trackback
     */
    var $trackback;

    /**
     * @var CI_Unit_test
     */
    var $unit;

    /**
     * @var CI_Upload
     */
    var $upload;

    /**
     * @var CI_Uri
     */
    var $uri;

    /**
     * @var CI_User_agent
     */
    var $agent;

    /**
     * @var CI_Validation
     */
    var $validation;

    /**
     * @var CI_Xmlrpc
     */
    var $xmlrpc;

    /**
     * @var CI_Xmlrpcs
     */
    var $xmlrpcs;

    /**
     * @var CI_Zip
     */
    var $zip;


    function MY_Controller() {
        parent::Controller();
    }
}
?>

EDIT:

Your controllers should then extend MY_Controller like this:

Code:
class Admin extends MY_Controller {

    function Admin()
    {
        parent::MY_Controller();    
    }


Messages In This Thread
codeignitier and eclipse - by El Forum - 06-03-2008, 11:14 AM
codeignitier and eclipse - by El Forum - 06-03-2008, 11:41 AM
codeignitier and eclipse - by El Forum - 06-03-2008, 12:04 PM
codeignitier and eclipse - by El Forum - 06-03-2008, 12:22 PM
codeignitier and eclipse - by El Forum - 06-03-2008, 12:27 PM
codeignitier and eclipse - by El Forum - 06-03-2008, 12:37 PM
codeignitier and eclipse - by El Forum - 06-03-2008, 01:10 PM
codeignitier and eclipse - by El Forum - 06-03-2008, 01:19 PM
codeignitier and eclipse - by El Forum - 06-03-2008, 02:11 PM
codeignitier and eclipse - by El Forum - 06-03-2008, 06:09 PM
codeignitier and eclipse - by El Forum - 06-04-2008, 12:55 AM
codeignitier and eclipse - by El Forum - 06-04-2008, 03:08 AM
codeignitier and eclipse - by El Forum - 06-04-2008, 12:05 PM
codeignitier and eclipse - by El Forum - 06-04-2008, 01:35 PM
codeignitier and eclipse - by El Forum - 06-05-2008, 10:10 AM
codeignitier and eclipse - by El Forum - 06-05-2008, 01:16 PM
codeignitier and eclipse - by El Forum - 06-05-2008, 01:37 PM
codeignitier and eclipse - by El Forum - 06-06-2008, 01:51 AM
codeignitier and eclipse - by El Forum - 06-08-2008, 08:26 AM
codeignitier and eclipse - by El Forum - 06-09-2008, 05:52 AM
codeignitier and eclipse - by El Forum - 06-10-2008, 12:28 AM
codeignitier and eclipse - by El Forum - 06-10-2008, 02:06 AM
codeignitier and eclipse - by El Forum - 08-04-2008, 02:49 PM
codeignitier and eclipse - by El Forum - 08-04-2008, 03:35 PM
codeignitier and eclipse - by El Forum - 08-05-2008, 05:40 AM
codeignitier and eclipse - by El Forum - 09-27-2008, 06:31 PM
codeignitier and eclipse - by El Forum - 09-28-2008, 05:12 AM
codeignitier and eclipse - by El Forum - 09-28-2008, 07:41 AM
codeignitier and eclipse - by El Forum - 09-28-2008, 12:27 PM
codeignitier and eclipse - by El Forum - 09-28-2008, 02:20 PM
codeignitier and eclipse - by El Forum - 09-28-2008, 04:43 PM
codeignitier and eclipse - by El Forum - 09-29-2008, 02:31 AM
codeignitier and eclipse - by El Forum - 09-29-2008, 06:05 AM
codeignitier and eclipse - by El Forum - 09-29-2008, 08:22 AM
codeignitier and eclipse - by El Forum - 09-29-2008, 02:06 PM
codeignitier and eclipse - by El Forum - 12-09-2008, 05:25 AM
codeignitier and eclipse - by El Forum - 04-13-2009, 01:43 PM
codeignitier and eclipse - by El Forum - 10-16-2009, 02:38 AM
codeignitier and eclipse - by El Forum - 10-16-2009, 03:25 AM
codeignitier and eclipse - by El Forum - 10-19-2009, 02:58 PM
codeignitier and eclipse - by El Forum - 03-05-2010, 08:50 AM
codeignitier and eclipse - by El Forum - 03-06-2010, 09:05 AM
codeignitier and eclipse - by El Forum - 03-06-2010, 02:02 PM
codeignitier and eclipse - by El Forum - 02-02-2011, 03:25 AM



Theme © iAndrew 2016 - Forum software by © MyBB