PHP Class not found

Hi,

I install the PHP plugin for IntelliJ.
I think I setted up everything (php interpreter,MAMP...etc)
I created a class "the name is person.php" and try to instantiate in the index.php class, but I got the following error:

Fatal error: Class 'person' not found in /Users/varadig/Documents/Work/WebDevelop/TestPHP/index.php on line 6

The two file are included.

thanks for the help.



Attachment(s):
person.php.zip
index.php.zip
1 comment

Hi,

At the moment it's not clear is that IDE problem.
1. Do these files work outside the IDEA? I suppose, they should be deployed on a web server? Correct me, please, if I'm wrong. Do they work there?
2. What do you do in IDEA when get this error?

Regards,
Alexander.

0

Please sign in to leave a comment.