Helpers loading with each include statement |
Here is the contents of one of my Helpers ("siteinfo") as an example:
PHP Code: <?php How else could I retrieve this type of information on every page? It was previously suggested that helpers were the way to go. I'm somewhat new to this and open to suggestions! It just dawned on me that those should be individual functions and each called where they are needed. My thought process was backwards on this. I was thinking I was calling this once and loading a "variable" with the information when in fact I am calling this function/helper every time I display one of the elements. Doh! Sorry for the silly question. |
Messages In This Thread |
Helpers loading with each include statement - by SoccerGuy3 - 08-09-2021, 02:05 PM
RE: Helpers loading with each include statement - by includebeer - 08-09-2021, 03:55 PM
RE: Helpers loading with each include statement - by SoccerGuy3 - 08-09-2021, 03:59 PM
RE: Helpers loading with each include statement - by includebeer - 08-09-2021, 05:03 PM
RE: Helpers loading with each include statement - by donpwinston - 08-10-2021, 03:14 AM
RE: Helpers loading with each include statement - by includebeer - 08-10-2021, 04:16 AM
RE: Helpers loading with each include statement - by SoccerGuy3 - 08-10-2021, 08:06 AM
RE: Helpers loading with each include statement - by SoccerGuy3 - 08-10-2021, 09:08 AM
|