Welcome Guest, Not a member yet? Register   Sign In
Aptana 3 and CodeIgniter 2 code completion
#7

[eluser]jmp909[/eluser]
another solution that seems to work .. and i find simpler to maintain

in that autocomplete folder just create one file like the one below

try this
Code:
<?php

class _
{    
    function _()
    {

        // any classes you want included in autocompletion                
        $this->load = new CI_Loader();
        $this->config = new CI_Config();        
        $this->email = new CI_Email();
        $this->encrypt = new CI_Encrypt();
        $this->pagination = new CI_Pagination;
        $this->session = new CI_Session();
        $this->driver = new CI_Driver();
        $this->benchmark = new CI_Benchmark();
        $this->typography = new CI_Typography();
        $this->form_validation = new CI_Form_validation();
        $this->profiler = new CI_Profiler();
        $this->image_lib = new CI_Image_lib();
        $this->math = new Math();
        $this->calendar = new CI_Calendar();
        $this->db = new CI_DB_active_record();
        $this->table = new CI_Table();
        $this->table = new MY_Table();
        $this->ftp = new CI_FTP();
        $this->output = new CI_Output();
        $this->javascript = new CI_Javascript();
            
        // note you'll need to use $this->CI = & getInstance() in extended libs
        // in order for the CI to autocomplete
        $this->CI=new CI_Controller();
        
    }
    
}

// any classes you want autocomplete for
class CI_Controller extends _ {}
class CI_Model extends _ {}
class CI_Form_validation extends _ {}
class CI_Table extends _ {}
?>

now from your application/controller classes, the autocomplete will pick up as required... so you can now do
Code:
$this->load->libray("profiler");
$this->profiler->.... [functions now appear in autocomplete dropdown]

just make sure you stick to the correct naming conventions.

remember this file in autocomplete folder never gets run, it's just there to map the autocompletion in aptana


Messages In This Thread
Aptana 3 and CodeIgniter 2 code completion - by El Forum - 04-28-2011, 10:20 AM
Aptana 3 and CodeIgniter 2 code completion - by El Forum - 04-29-2011, 09:52 AM
Aptana 3 and CodeIgniter 2 code completion - by El Forum - 05-02-2011, 10:57 AM
Aptana 3 and CodeIgniter 2 code completion - by El Forum - 05-02-2011, 02:02 PM
Aptana 3 and CodeIgniter 2 code completion - by El Forum - 06-02-2011, 06:45 AM
Aptana 3 and CodeIgniter 2 code completion - by El Forum - 07-20-2011, 05:57 PM
Aptana 3 and CodeIgniter 2 code completion - by El Forum - 07-20-2011, 06:35 PM
Aptana 3 and CodeIgniter 2 code completion - by El Forum - 01-20-2012, 03:59 AM
Aptana 3 and CodeIgniter 2 code completion - by El Forum - 03-14-2012, 03:58 AM
Aptana 3 and CodeIgniter 2 code completion - by El Forum - 03-14-2012, 07:06 AM
Aptana 3 and CodeIgniter 2 code completion - by El Forum - 03-14-2012, 10:10 AM
Aptana 3 and CodeIgniter 2 code completion - by El Forum - 03-14-2012, 10:47 AM
Aptana 3 and CodeIgniter 2 code completion - by El Forum - 03-14-2012, 10:57 AM
Aptana 3 and CodeIgniter 2 code completion - by El Forum - 03-14-2012, 12:02 PM
Aptana 3 and CodeIgniter 2 code completion - by El Forum - 03-15-2012, 11:04 AM
Aptana 3 and CodeIgniter 2 code completion - by El Forum - 08-28-2014, 11:44 PM



Theme © iAndrew 2016 - Forum software by © MyBB