Questions tagged [codeigniter-helpers]

Rogue functions who don't belong to a class, but can be grouped by their final purpose in CodeIgniter.

Helpers, as the name suggests, help you with tasks. Each helper file is simply a collection of functions in a particular category. There are URL Helpers, that assist in creating links, there are Form Helpers that help you create form elements, Text Helpers perform various text formatting routines, Cookie Helpers set and read cookies, File Helpers help you deal with files, etc.

17 questions
0
votes
2 answers

Which is better in codeigniter? Adding a function in a helper or adding a function in an extended base class

In a codeigniter project i have to do some set of stuff in one than one controller. I code all that stuff in a function and now i need to call whenever necessary. i think Writing this function in more than one controller is not good. i have 2…
Vibin TV
  • 822
  • 9
  • 28
0
votes
2 answers

CodeIgniter: How to add css link tag to the head of html page from within a helper

I've got a helper method which renders some html along with the required css and js links. I am simply concatenating all the html tags and returning the built string. The helper method is something like this: function display_linkPreview($data =…
B Faley
  • 17,120
  • 43
  • 133
  • 223
1
2