Which CodeIgniter function is used to load a view file?

  • $this->render()
  • $this->view()
  • $this->load->file()
  • $this->load->view()
In CodeIgniter, the correct function to load a view file is $this->load->view(). This function takes the view filename as its parameter and is responsible for rendering the view to the browser. Avoid options like $this->render() or $this->view() as they are not standard CodeIgniter functions.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *