/    Sign up×
Community /Pin to ProfileBookmark

[RESOLVED] PHP fatal error class Home doesn’t found

Hello,
I’m working on a MVC system but I received the next error
Fatal error: Class ‘Home’ not found in /Users/jakublemiszewski/Desktop/KEA/Projects/MVCtut/app/core/App.php on line 29
I don’t know why just the class exist in the controller folder.
This is my scripts so far:
App.php [URL=”http://paste.ofcode.org/UY73qdTAaYfpgBsqdikhse”]http://paste.ofcode.org/UY73qdTAaYfpgBsqdikhse[/URL] -> Core Folder
Contact.php and Home.php [URL=”http://paste.ofcode.org/4Q9fBSGnYPry8zVFN2fKDy”]http://paste.ofcode.org/4Q9fBSGnYPry8zVFN2fKDy[/URL]-> Controllers Folder
I made only this scripts for now please let me know what I did wrong.
Thanks for help.

to post a comment
PHP

2 Comments(s)

Copy linkTweet thisAlerts:
@NogDogJan 22.2015 — Did you require[_once]() whatever file defines Home before trying to instantiate it, Or are you trying to use an __autoload() function? (Sorry, but I'm to lazy to follow links to the full code, so just asking the most obvious questions.)
Copy linkTweet thisAlerts:
@JakubauthorJan 22.2015 — Did you require[_once]() whatever file defines Home before trying to instantiate it, Or are you trying to use an __autoload() function? (Sorry, but I'm to lazy to follow links to the full code, so just asking the most obvious questions.)[/QUOTE]

Hi, I used a require_once but now I resolved. I forgot that symbol $ in one line. Now works.
×

Success!

Help @Jakub spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.15,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @nearjob,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,
)...