having trouble loading an html view - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5) +--- Forum: General Help (https://forum.codeigniter.com/forumdisplay.php?fid=24) +--- Thread: having trouble loading an html view (/showthread.php?tid=81997) |
having trouble loading an html view - richb201 - 06-01-2022 I am trying to load an html file to the screen. I created the file in views/stripe and it is called checkout.html. I am trying this but it fails: $this->load->view('stripe/checkout.html'); The error is "unable to load requested file: stripe/checkout.html" Here is the source code of the html view file: Code: <!DOCTYPE html> What am I doing wrong? RE: having trouble loading an html view - php_rocs - 06-02-2022 @richb201 , did you check permissions of the file? Also, did you check the CaSe spelling of the file to see if it matches? Is it possible to see the controller that calls the view? RE: having trouble loading an html view - includebeer - 06-07-2022 Rename your file checkout.php and load it with only the filename, without the extension: PHP Code: $this->load->view('stripe/checkout'); |