Welcome Guest, Not a member yet? Register   Sign In
How can i viewed a static page with CI4 ?
#1

I'm calling the file called booking.php with Codeigniter 4, but I'm getting an error. Although I add the following lines to Home Controller, the page does not appear, where am I going wrong?

public function booking()
{
$this->load->view('Partials/home/head');
$this->load->view('Home/booking');
$this->load->view('Partials/home/foot');
}
I'm calling the booking.php file, but it gives an error. as sitename.com/booking

public function index()
{
echoview('Partials/home/head');
echoview('Home/index');
echoview('Partials/home/foot');
}
but I can call index.php as above. Again, I can't call a different /urly like /booking /contact etc
Reply


Messages In This Thread
How can i viewed a static page with CI4 ? - by yasintheking - 01-23-2022, 12:21 PM



Theme © iAndrew 2016 - Forum software by © MyBB