I 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?
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)