Reputation: 496
So my test page works on my localhost, but as soon as I took the project to a webhost I get the problem:
Error: Class 'Guest' not found
File:/home/www/my-test-domain.co.za/Test/app/Controller/TestController.php
Line: 14
This is my model:
This is my controller:
The DB connection is fine (CakePHP indicated that it is) and I have no idea what to try next. I have probably tried every combination of typing the word "Guest" with and without capital letters throughout the project. Any help would be appreciated. Thanks!
Upvotes: 0
Views: 137
Reputation: 146450
Files should be named after the class they contain. Your class is called Guest
so your file should be Guest.php
. However, the screen-shot suggests the name is guest.php
(please note the lowercase).
If it works in your development box, you're probably using Windows.
Upvotes: 4