CodeIgniter Forums
Helpers and the Department of Redundancy Department - 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: Helpers and the Department of Redundancy Department (/showthread.php?tid=48470)



Helpers and the Department of Redundancy Department - El Forum - 01-17-2012

[eluser]ColonelChlorine[/eluser]
I'm in the midst of getting away from CodeIgniter's obsession on instantiating my libraries (sometimes I just want to include a class goshdarnit!). While trying to use helpers to help me accomplish this goal I came across something odd.

Helper files need to be in the "helpers" directory and must be suffixed with "_helper.php". Why the redundancy? I'll give the devs the benefit of the doubt that there is something else going on, but seriously - let's just scrap that and by convention anything in the "helper" directory is a helper.

I understand about the CI_ and MY_ issue, but this is for other helpers that don't conflict.

That is all,
Chlorine