CodeIgniter Forums
Use Of Helpers - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: Use Of Helpers (/showthread.php?tid=41253)



Use Of Helpers - El Forum - 05-03-2011

[eluser]leela[/eluser]
What is the use of helpers ?
Really are they very useful?
How can we create our own helper and how we can use it in our controller or views?
Please can anyone explain me clearly about the use of helpers.. I am really confused...


Use Of Helpers - El Forum - 05-03-2011

[eluser]Sudz[/eluser]
Follow this link
http://ellislab.com/codeigniter/user-guide/general/helpers.html


Use Of Helpers - El Forum - 05-03-2011

[eluser]sblaas[/eluser]
Helpers are exactly as what the title is refering to it's a "helper"
Some may call it a collection of functions.

For instance you can have extended email validation helper ( which also checks mx records )

For using a helper you call
Code:
$this->load->helper ( "helperfilename" );
Note. when calling the helper don't include the part of the filename "_helper"
Or you can use the autoload config




[quote author="leela" date="1304431830"]What is the use of helpers ?
Really are they very useful?
How can we create our own helper and how we can use it in our controller or views?
Please can anyone explain me clearly about the use of helpers.. I am really confused...[/quote]