Search code examples
codeigniter-4php-7.4

autoload might not working in Codeigniter 4 in cloud machine


enter image description hereI am getting the following error in amazone cloud (AWS)
Class 'App\Controllers\My_Controller' not found
but it works fine in my local. i cant find whats the issue?


Solution

  • Amazon Cloud servers (AWS), similar to Apache are case sensitive, your error is most likely deriving from a naming convention error, as it works on your localhost.

    check that My_Controller.php and the My_Controller class are spelled correctly (1st letter uppercase and case sensitive)