How do you load a Helper in a CodeIgniter controller?

  • $this->load->helper('helper_name');
  • $this->helper->load('helper_name');
  • include_helper('helper_name');
  • require_once('helper_name');
In a CodeIgniter controller, you load a Helper using the syntax $this->load->helper('helper_name');. This makes the functions within the helper available for use in the controller. Incorrect options do not represent the correct way to load a Helper in CodeIgniter.
Add your answer
Loading...

Leave a comment

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