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
#2

(01-23-2022, 12:21 PM)yasintheking Wrote: but I can call index.php as above. Again, I can't call a different /urly like /booking /contact etc

Can you call .../index.php/booking? Did you changed your htaccess-File?
Reply
#3

Have you checked Routes file under config?
Reply




Theme © iAndrew 2016 - Forum software by © MyBB