Codeigniter Load Helper

Codeigniter Load Helper : There are two options to load helpers in codeigniter either load inline or autoload it before using it.

Syntax : Codeigniter Load Helper



Load Url Helper.


Codeigniter Load Multiple Helper



Load Url, form Helper.


Auto-load Codeigniter Helper

Go to application/config/autoload.php
Go to Below Line

$autoload['helper'] = array('helper1','helper2');


Load url, form Helper.

$autoload['helper'] = array('url', 'form');

How To Use

Once you have loaded the helper in the controller now you can use helper functions in view for example :

 echo anchor('users/home', 'Home');

Which Will Generate a link.

Add Comment

📖 Read More