aid

Tuesday, 14 April 2015

loading helper in codeigniter

Loading a Helper,mvc training,mvc tutorial,learn mvc
Loading a helper file is quite simple using the following function: click

$this->load->helper('helpername');
Where 'helpername'is the  name of the helper, without the .php file extension.
For example, for loading the form Helper file, which is named form_helper.php located in helper folder, you would to write it like this:
$this->load->helper(‘form’);
Loading Multiple Helpers
If you need to load Multiple helper you can write  them in an array, like this:
$this->load->helper( array('helper1', 'helper2', 'helper3') );

No comments:

Post a Comment