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

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

[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.
#33

[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?
#34

[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.
#35

[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."
#36

[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
#37

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

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

Thankyou, thankyou, thankyou.

:-)
#39

[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/n...gniter-ii/

I was wondering if this applies also to Eclipse?
#40

[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/n...gniter-ii/

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

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




Theme © iAndrew 2016 - Forum software by © MyBB