Reputation: 718
I'm developing an application via Slim framework and I made my classes to be loaded with composer.
When I'm running it locally via xampp, it totally works, but as soon as I upload it on a web storage, the following error occurs.:
Type: Error
Message: Class 'App\Controllers\UserController' not found
File: /some/path/backend/src/controllers.php
Line: 8
I uploaded my vendor directory also. Checked get_declared_classes()
result, and my classes are actually not loaded. Could you make a hint, that where should I search for the solution?
Kind regards, Daniel.
Upvotes: 0
Views: 383
Reputation: 43441
Since you are programming locally using Windows and on server there is Linux, check that namespace and directory has same CamelCase naming, because Linux is case sensitive while Windows is case insensitive.
Upvotes: 3