Get up to 80 % extra points for free! More info:

Discussion: MVC Content Management System

Activities
Avatar
easy Israel
Member
Avatar
easy Israel:10/24/2017 10:03

My Controller cannot find my model. I keep getting an error. I thought the auto loader was supposed to connect with my models automatically.
keep getting this error. I don't know what is wrong. Please Help me out
Fatal error: Class 'EmailSender' not found in C:\xampp\htdoc­s\controllers\Con­tactController­.php on line 15

 
Reply
10/24/2017 10:03
Avatar
Mirek Slouka
Member
Avatar
Replies to easy Israel
Mirek Slouka:1/18/2018 15:35

No one can help you, when you don't share your code where the error occurs + that model which can't be found. I can just guess that you didn't use namespace of EmailSender in ContactController.

 
Up Reply
1/18/2018 15:35
Avatar
Replies to easy Israel
David Capka Hartinger:1/19/2018 5:02

If you're using our Simple object-oriented CMS in PHP course, you can always download the source code in the attachment below every article and find your mistake.

Edited 1/19/2018 5:51
Up Reply
1/19/2018 5:02
You can walk through a storm and feel the wind but you know you are not the wind.
To maintain the quality of discussion, we only allow registered members to comment. Sign in. If you're new, Sign up, it's free.

3 messages from 3 displayed.