CodeIgniter Forums
localhost send an invalid response - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: CodeIgniter 4 (https://forum.codeigniter.com/forumdisplay.php?fid=28)
+--- Forum: CodeIgniter 4 Support (https://forum.codeigniter.com/forumdisplay.php?fid=30)
+--- Thread: localhost send an invalid response (/showthread.php?tid=78084)

Pages: 1 2


RE: localhost send an invalid response - InsiteFX - 11-29-2020

Also make sure that you saved your controller to the file system with the first letter
capitalized.


RE: localhost send an invalid response - upnormal - 11-29-2020

(11-29-2020, 03:45 AM)neoneeco Wrote: What if :

return redirect()->to(base_url());

return redirect()->to(base_url('komik/'));

try and see
did you try other things ?
i tested to use return view, but it have more errors and i dont understand
still have same errors btw


RE: localhost send an invalid response - upnormal - 11-29-2020

(11-29-2020, 06:20 AM)mylastof Wrote: I want to see complete file structure, is possible?
i think thats all, its any file you want to see?


RE: localhost send an invalid response - InsiteFX - 11-30-2020

Try these:

PHP Code:
return route_to(base_url());

return 
route_to(base_url('komik/')); 



RE: localhost send an invalid response - upnormal - 11-30-2020

(11-30-2020, 01:01 PM)InsiteFX Wrote: Try these:

PHP Code:
return route_to(base_url());

return 
route_to(base_url('komik/')); 
now it have blank white screen


RE: localhost send an invalid response - InsiteFX - 11-30-2020

Show us an image of your Controllers folder. The file name needs to be identical to the Controller class name.

PHP Code:
class Komik extends BaseContoller

File saved 
as app/Controllers/Komik.php 



RE: localhost send an invalid response - upnormal - 11-30-2020

(11-30-2020, 09:36 PM)InsiteFX Wrote: Show us an image of your Controllers folder. The file name needs to be identical to the Controller class name.

PHP Code:
class Komik extends BaseContoller

File saved 
as app/Controllers/Komik.php 
controller:

https://imgur.com/RYSLWVg