Tag Archives: codeigniter load url file form helper
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
$this->load->helper('name');
Example
Load Url Helper.
$this->load->helper('url');
Codeigniter Load Multiple Helper
$this->load->helper(array('name1','name2','name3'));
Example
Load Url, form Helper.
$this->load->helper('url','form');
Auto-load Codeigniter Helper
Go to application/config/autoload.php
Go to Below Line
$autoload['helper'] = array('helper1','helper2');
Example
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 :
Which Will Generate a link.