Codeigniter Helpers

Codeigniter Helpers are a collection of functions in a particular category which full fills the requirement for particular tasks.

Example : url helper which provides functions related to creating links .

How to load Codeigniter helpers :

$this->load->helper('name');

for loading url helper :

$this->load->helper('url');

Loading multiple helpers :

$this->load->helper( array('helper1', 'helper2', 'helper3') );

You can also autoload helpers :

to autoload helpers go to autoload.php

add the helper in autoload you want to auto load.

 


Advertisements

Add Comment

📖 Read More