CodeIgniter 4 routes not working properly |
I just got into CI4 from a CI3 background but I'm finding it difficult to get routes to display the appropriate view. Even though I have written the code in the controller properly to load a view, it always returns index.php no matter what instead of the correct view even when I enter a non-existent route. The 404 page doesn't show either. Please, what am I missing?
Here's my controller code:
Code: <?php Here's the result I get on the browser: ![]() |
Messages In This Thread |
CodeIgniter 4 routes not working properly - by DanielTheGeek - 11-17-2020, 05:04 PM
RE: CodeIgniter 4 routes not working properly - by InsiteFX - 11-17-2020, 09:43 PM
RE: CodeIgniter 4 routes not working properly - by DanielTheGeek - 11-17-2020, 11:39 PM
|