Welcome Guest, Not a member yet? Register   Sign In
Define/include "globally available" arrays and functions
#13

(06-06-2021, 02:31 AM)tomsenner Wrote: Instead of creating a new helper file, I could also use app/Common.php, right? It says it's like the Master helper file and loaded already anyway. Any disadvantage of using this file?

Yes absolutely, I forgot about Common.php because I never had to use it yet. The only disadvantage I can think of is if you have a lot of functions and it becomes a mess of thousands of line. Then it would make more sense to have separate helpers for each subject.
CodeIgniter 4 tutorials (EN/FR) - https://includebeer.com
/*** NO support in private message - Use the forum! ***/
Reply


Messages In This Thread
RE: Define/include "globally available" arrays and functions - by includebeer - 06-06-2021, 08:02 AM



Theme © iAndrew 2016 - Forum software by © MyBB