views:

1861

answers:

2

I am attempting to setup codeigniter with eclipse but am getting project errors. From what I understand this should be as simple as creating a new project in eclipse and pointing to the root directory of codeigniter. This properly loads up the codeigniter files but eclipse reports several errors. Looking into the files, it seems like the errors are coming from html files and/or files that print html. For instance, footer.php is showing up as having an error because there is a closing tag but no opening tag. Any suggestions on how to overcome this? At this point would code completion / debugging be too much to ask for as well?

UPDATE: so from what I am gathering from the response below (and searching around on the web) is that when using codeigniter with eclipse one can only take advantage of the code completion / editing features? I also noticed that I am getting NoClassDefFoundError when attempting to open some of the .php files in the eclipse project tree for editing. Surely I must be missing something and there is a way to achieve tighter integration with codeigniter and eclipse? (i would strongly prefer to stick with eclipse as opposed to switching ides) Or maybe this is an issue with my eclipse/pdt setup?

UPDATE 2: I just downloaded the latest eclipse version (galileo) and it seemed to fix all of these issues! except for debugging of course ...

A: 

you will get lots of html errors because the html has been broken into chunks and is not a complete document just ignore them thats what i do (there are settings somewhere that control what errors are validated against in eclipse)

i still use the php/html/js code completion and it works fine even with the errors

if you are using svn version control, add subclipse plugin, so you can do that from within eclipse too

bumperbox
thanks for the reply, so basically you are using eclipse just for the code completion and editing with no debugging etc?
yep that is correct, i also use eclipse for java projects i work on, so it is nice to use the same ide for both
bumperbox
A: 

Try Aptana.

The last time I checked I was able to do a step by step debug on it and did not see any errors in my project. It is also built on eclipse, so there is nothing new to learn.

Virat Kadaru