Welcome Guest, Not a member yet? Register   Sign In
What is causing the error in Codeigniter 4?
#1

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');
}
Reply


Messages In This Thread
What is causing the error in Codeigniter 4? - by JohnMoncatkina - 03-30-2023, 11:55 PM



Theme © iAndrew 2016 - Forum software by © MyBB