Codeigniter and eclipse autocomplete |
[eluser]web-johnny[/eluser]
In Codeigniter till now we write for example $this->session-> … and then we go to the codeigiter website just to see what was the name of the function . I created a Controller and I named it fakeController that works only for the autocomplete of eclipse and other of course editors. Write faster code and don't search everytime where the function of a library is :-) . For more click to my Post here. Below is my code Code: <?php
[eluser]CroNiX[/eluser]
I've been using it for so long without it I forgot how handy this could be. Thank you
[eluser]web-johnny[/eluser]
if you're using CI 2.0 just rename Controller to CI_Controller and autocomplete will work
[eluser]web-johnny[/eluser]
If you like you can download the "fake" Controller for CI 2.0.0 from the url http://www.web-and-development.com/downl...CI_2.0.zip
[eluser]CroNiX[/eluser]
Just putting this here in case others have the same problem. If you still can't get autocomplete to work after the above solution, try this fix found on the Zend forums. It worked for me using ZS7 and also ZS8, both on windows and osx. http://forums.zend.com/viewtopic.php?f=5...=20#p19107
[eluser]web-johnny[/eluser]
for Codeigniter 2.0 below is the code for the autocomplete ( Its works fine with Netbeans also ) Code: class CI_Controller {
|
Welcome Guest, Not a member yet? Register Sign In |