CodeIgniter Forums
codeignitier and eclipse - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21)
+--- Thread: codeignitier and eclipse (/showthread.php?tid=8861)

Pages: 1 2 3 4 5


codeignitier and eclipse - El Forum - 09-28-2008

[eluser]daniel.affonso[/eluser]
outrage, thank you!
It's really works to simplify the code edition.


codeignitier and eclipse - El Forum - 09-29-2008

[eluser]outrage[/eluser]
Hey you're welcome.
Maybe this should be put on a wiki or stickied?
I searched a long time before I came across this little baby and I see the same question week after week.
I use it in all my projects now. You could take it out for production but it's not that big an issue for me.


codeignitier and eclipse - El Forum - 09-29-2008

[eluser]Bogdan Tanase[/eluser]
I'm also using eclipse (well actually ZSE) and the method you described is very interesting indeed.
But it works only for controllers. I assume if you create a custom Model class and you copy the variables will also work for models.

But this duplicates the code and if you add another model you have to update both files and things will tend to get messy.

I'm wondering if it would be possible to create a separate file, something like "code_completion_helper" where we can define all the phpdoc comments and variables, and then include this file at the beggining of each controller/model/view or base class if exists?

I've tried something like that, but without any success.

Got any thoughts?


codeignitier and eclipse - El Forum - 09-29-2008

[eluser]outrage[/eluser]
Oops,

I forgot to mention, your controllers should extend MY_Conroller like this:

Code:
class Admin extends MY_Controller {

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

I'll update the original post.


codeignitier and eclipse - El Forum - 09-29-2008

[eluser]daniel.affonso[/eluser]
outrage, I believe this tip is very relevant.
It should be put on wiki and stickied.

Bogdan Tanase, thinking in a very quirky way: We could create a library instead a helper.
In this library we put all the things you're already said and the classes like MY_Controller... but i really don't now it will works... could you test something like?

But, like outrage said: "You could take it out for production but it’s not that big an issue for me."


codeignitier and eclipse - El Forum - 12-09-2008

[eluser]Carlton[/eluser]
[quote author="outrage" date="1222716151"]Oops,

I forgot to mention, your controllers should extend MY_Conroller like this:

Code:
class Admin extends MY_Controller {

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

I'll update the original post.[/quote]

Thanks Outrage, very good post! Works well in my version of Eclipse PDT


codeignitier and eclipse - El Forum - 04-13-2009

[eluser]GSV Sleeper Service[/eluser]
anyone know how to get the method outrage mentioned working in Aptana?


codeignitier and eclipse - El Forum - 10-16-2009

[eluser]jfurey[/eluser]
Outrage... you've eased a massive headache.

Thankyou, thankyou, thankyou.

:-)


codeignitier and eclipse - El Forum - 10-16-2009

[eluser]cahva[/eluser]
Theres been a long time since I've used eclipse. I use Netbeans as its lighter than eclipse. NB doesnt have CI autocompletion by default but fortunately there is a way to get it working:
http://www.mybelovedphp.com/2009/01/27/netbeans-revisited-code-completion-for-code-igniter-ii/

I was wondering if this applies also to Eclipse?


codeignitier and eclipse - El Forum - 10-19-2009

[eluser]Dewos[/eluser]
[quote author="cahva" date="1255703146"]Theres been a long time since I've used eclipse. I use Netbeans as its lighter than eclipse. NB doesnt have CI autocompletion by default but fortunately there is a way to get it working:
http://www.mybelovedphp.com/2009/01/27/netbeans-revisited-code-completion-for-code-igniter-ii/

I was wondering if this applies also to Eclipse?[/quote]

Works (on netbeans... but on eclipse too, i think)!!
Many thanks Smile