What is causing the error in Codeigniter 4? |
It looks like you're having trouble loading the booking.php file using Codeigniter 4. From your code snippet, it seems that you have added the necessary code to the Home Controller. However, when you try to access the booking page at sitename.com/booking, you encounter an error. It could be that the URL is not configured properly in your routing file. Have you made sure that the route for the booking page is defined in your routes.php file? You can try adding the following line to your routes file: `$routes->get('booking', 'Home::booking');` This will map the URL `sitename.com/booking` to the `booking()` method in your Home Controller. Once you have added the route, you should be able to access the booking page without any issues.
|
Messages In This Thread |
What is causing the error in Codeigniter 4? - by JohnMoncatkina - 03-30-2023, 11:55 PM
RE: What is causing the error in Codeigniter 4? - by JustJohnQ - 03-31-2023, 02:32 AM
RE: What is causing the error in Codeigniter 4? - by HermyC - 03-31-2023, 05:50 AM
RE: What is causing the error in Codeigniter 4? - by InsiteFX - 03-31-2023, 11:32 PM
RE: What is causing the error in Codeigniter 4? - by BremySohrax - 04-11-2023, 12:34 AM
RE: What is causing the error in Codeigniter 4? - by InsiteFX - 04-11-2023, 11:08 PM
RE: What is causing the error in Codeigniter 4? - by DempseyTorhan - 04-25-2023, 10:29 PM
|