CodeIgniter: Create new helper?

A CodeIgniter helper is a PHP file with multiple functions. It is not a class Create a file and put the following code into it. <?php if ( ! defined(‘BASEPATH’)) exit(‘No direct script access allowed’); if ( ! function_exists(‘test_method’)) { function test_method($var=””) { return $var; } } Save this to application/helpers/ . We shall call … Read more