CodeIgniter helpers

Helpers are stored in 'system/helpers', or 'application/helpers' folders.

Loading a helper in the controller

<?php
$this->load->helper('form');
?>

List of auto-loading helpers can be set in file: 'application/config/autoload.php'

Using helper

<?php
echo anchor('gallery/listing', 'View gallery listing');
?>

Leave a Reply

Your email address will not be published. Required fields are marked *