How can i viewed a static page with CI4 ? |
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 |
Messages In This Thread |
How can i viewed a static page with CI4 ? - by yasintheking - 01-23-2022, 12:21 PM
RE: How can i viewed a static page with CI4 ? - by sprhld - 01-24-2022, 05:02 AM
RE: How can i viewed a static page with CI4 ? - by demyr - 01-24-2022, 08:09 AM
|