What is causing the error in Codeigniter 4? |
I am trying to load the booking.php file using Codeigniter 4, but encountering an error. I have added the required code to the Home Controller, but the page does not show up. When I call the file at sitename.com/booking, it returns an error. However, I am able to call index.php successfully. I am unable to call other URLs like /booking or /contact. Here is the code that I have added to the Home Controller:
public function booking() { $this->load->view('Partials/home/head'); $this->load->view('Home/booking'); $this->load->view('Partials/home/foot'); } public function index() { echoview('Partials/home/head'); echoview('Home/index'); echoview('Partials/home/foot'); } |
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
|