CodeIgniter Forums
Helper file function or view - 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: Helper file function or view (/showthread.php?tid=59305)



Helper file function or view - El Forum - 09-18-2013

[eluser]xtremer360[/eluser]
I have a standard HTML table that displays information about all users. The last column in the table displays button actions that can be used for the user. This is a column that gets repeated over several different tables of data so I am interested in knowing is this something I should use a helper for or should I make a view out of this column?






Helper file function or view - El Forum - 09-20-2013

[eluser]Otemu[/eluser]
Hi,

I think either really, depends on your preference, some people don't like to use views for a small amount of information such as just a single column, some don't like to use helpers just to output markup.

I would say don't waste to much time thinking about it over such a small thing which will hardly make much difference to which ever method you choose.