How to Create Custom Helper in Codeigniter

In this  article we have explained about how to create custom Helper in Codeigniter. Helper is a group of functions but it is not a class. <?php if ( ! defined(‘BASEPATH’)) exit(‘No direct script access allowed’); if ( ! function_exists(‘sample_method’)) { function sample_method($var = ”) { return $var; } } Save this to application/helpers/. We shall call it … Continue reading How to Create Custom Helper in Codeigniter