2

When I try to instantiate my class with Codeigniter, Eclipse won't show my methods on auto completion.

This is the way I am trying it:

$this->load->model('myclass');
$this->myclass-> // This shows nothing

But when I use the classic way of php to instantiate my class, the auto completion shows all methods and everything.

$this->load->model('myclass');
$myclass = new myclass();
$myclass-> // This shows all methods

How can I make Eclipse to autocomplete when I type $this->myclass?

Reza Saadati
  • 5,018
  • 4
  • 27
  • 64

1 Answers1

1

Eclipse doesn't support autocomplete extension for framework level like codeigniter. It only supports for language level like php. So, you need to add your own. This answer will be useful for you.

This is not directly related for your question. But I recommend to use Sublimetext and it is lightweight and has tons of code snippet for not only modern framework like Codeigniter and Laravel but also frontend framework like Bootstrap and Angularjs .

Hope this answer will be useful for you.

Community
  • 1
  • 1
Arkar Aung
  • 3,554
  • 1
  • 16
  • 25