CodeIgniter fetch data to the view without controller

How to direct call to the function from the view without using controller in CodeIgniter.Here is a example to it.Simply call to helper function and it get data from model.

First you load helper file from your controller.

[stextbox id=”info” bgcolor=”bacafb”]A helper class is a set of functions. These helper functions can help a library or any other type of function that you want to use over and over again in your code.[/stextbox]

In the controller


Usage in your view

That’s all!

Published by

Sumith Harshan

Sumith Harshan is the Web Engineer Specializes in Java Script, JQuery, HTML4/5, CSS2/3, PHP, CodeIgniter, CakePHP, J2SE, J2EE, XML, Hacking & Security, Mobile Interface Developing, Magento, Wordpress, Joomla, Drupal,PHPBB,Facebook App Developing and Open cart...etc.