CodeIgniter Forums
Avoid using helpers - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forum-5.html)
+--- Forum: Best Practices (https://forum.codeigniter.com/forum-12.html)
+--- Thread: Avoid using helpers (/thread-79001.html)



Avoid using helpers - MrWhite - 04-06-2021

I don't get why pretty much every PHP framework comes with this shit. I wish CI4 helpers were libraries instead of helpers. global methods are the worst thing. hard to test and bad for readability.

Now it's too late. ci4 helpers will be a thing forever. but if you are gonna create custom helpers, please don't! create and use libraries instead.