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

[eluser]Jim OHalloran[/eluser]
[quote author="Kromack" date="1212541879"]Basically, Eclipse don't show almost of ressource of a CI file because It's not a standard PHP5 synthax.

I mean :

Code:
$this->load->model('somemodel');
$this->somemodel->somefunction();


is not standard, CI engine emule the Object Oriented synthax but Eclipse is not able to recognize it.[/quote]

No, that _is_ standard PHP syntax. If it wasn't PHP couldn't interpret it and we'd get runtime errors. The real problem is that Eclipse can't determine the data type of the "load" object and therefore can't provide autocomplete for it's functions. The fix for this is to add phpDoc comments to CI which would indicate data types to Eclipse and other IDE's. Eclipse especially, is very smart about using phpDoc comments as hints for autocomplete and the like.

[quote author="Kromack" date="1212541879"]I guess when CI will be recoded in PHP5, Eclipse will be able to this stuff.[/quote]

Recoding CI in PHP5 won't help if it isn't documented with phpDoc at the same time. All we really need to do as a community is provide phpDoc for the CI we have and Eclipse would have better autocomplete for CI. All it would take is one or two dedicated CI users to write phpDoc for the current CI core and submit a patch.

phpDoc would make the autocomplete in Eclipse work better, but because of the dynamic nature of CI, I doubt we'll ever see a general purpose IDE with perfect autocomplete support for CI.

Jim.

PS: Eclipse + PDT + CI user myself.

PPS: I don't have time to phpDoc the entirety of the CI core myself, but I'd be willing to make a start, if others were willing to help out.


Messages In This Thread
codeignitier and eclipse - by El Forum - 06-03-2008, 11:14 AM
codeignitier and eclipse - by El Forum - 06-03-2008, 11:41 AM
codeignitier and eclipse - by El Forum - 06-03-2008, 12:04 PM
codeignitier and eclipse - by El Forum - 06-03-2008, 12:22 PM
codeignitier and eclipse - by El Forum - 06-03-2008, 12:27 PM
codeignitier and eclipse - by El Forum - 06-03-2008, 12:37 PM
codeignitier and eclipse - by El Forum - 06-03-2008, 01:10 PM
codeignitier and eclipse - by El Forum - 06-03-2008, 01:19 PM
codeignitier and eclipse - by El Forum - 06-03-2008, 02:11 PM
codeignitier and eclipse - by El Forum - 06-03-2008, 06:09 PM
codeignitier and eclipse - by El Forum - 06-04-2008, 12:55 AM
codeignitier and eclipse - by El Forum - 06-04-2008, 03:08 AM
codeignitier and eclipse - by El Forum - 06-04-2008, 12:05 PM
codeignitier and eclipse - by El Forum - 06-04-2008, 01:35 PM
codeignitier and eclipse - by El Forum - 06-05-2008, 10:10 AM
codeignitier and eclipse - by El Forum - 06-05-2008, 01:16 PM
codeignitier and eclipse - by El Forum - 06-05-2008, 01:37 PM
codeignitier and eclipse - by El Forum - 06-06-2008, 01:51 AM
codeignitier and eclipse - by El Forum - 06-08-2008, 08:26 AM
codeignitier and eclipse - by El Forum - 06-09-2008, 05:52 AM
codeignitier and eclipse - by El Forum - 06-10-2008, 12:28 AM
codeignitier and eclipse - by El Forum - 06-10-2008, 02:06 AM
codeignitier and eclipse - by El Forum - 08-04-2008, 02:49 PM
codeignitier and eclipse - by El Forum - 08-04-2008, 03:35 PM
codeignitier and eclipse - by El Forum - 08-05-2008, 05:40 AM
codeignitier and eclipse - by El Forum - 09-27-2008, 06:31 PM
codeignitier and eclipse - by El Forum - 09-28-2008, 05:12 AM
codeignitier and eclipse - by El Forum - 09-28-2008, 07:41 AM
codeignitier and eclipse - by El Forum - 09-28-2008, 12:27 PM
codeignitier and eclipse - by El Forum - 09-28-2008, 02:20 PM
codeignitier and eclipse - by El Forum - 09-28-2008, 04:43 PM
codeignitier and eclipse - by El Forum - 09-29-2008, 02:31 AM
codeignitier and eclipse - by El Forum - 09-29-2008, 06:05 AM
codeignitier and eclipse - by El Forum - 09-29-2008, 08:22 AM
codeignitier and eclipse - by El Forum - 09-29-2008, 02:06 PM
codeignitier and eclipse - by El Forum - 12-09-2008, 05:25 AM
codeignitier and eclipse - by El Forum - 04-13-2009, 01:43 PM
codeignitier and eclipse - by El Forum - 10-16-2009, 02:38 AM
codeignitier and eclipse - by El Forum - 10-16-2009, 03:25 AM
codeignitier and eclipse - by El Forum - 10-19-2009, 02:58 PM
codeignitier and eclipse - by El Forum - 03-05-2010, 08:50 AM
codeignitier and eclipse - by El Forum - 03-06-2010, 09:05 AM
codeignitier and eclipse - by El Forum - 03-06-2010, 02:02 PM
codeignitier and eclipse - by El Forum - 02-02-2011, 03:25 AM



Theme © iAndrew 2016 - Forum software by © MyBB