Helpers loading with each include statement |
(08-10-2021, 03:14 AM)donpwinston Wrote: Helpers in CodeIgniter are not really necessary anymore. Just use a class to wrap often used miscellaneous functions that don't make sense to include in your other classes. I believe helpers are more or less a holdover from previous versions of CI. Always looking to learn. Can you give me an example of how you would do this? I want to display a badge with the count of ToDo's for the user at the top of the screen. This would be on every screen so would need to be accomplished outside the controller for that page (since there are dozens of controllers, each with dozens of pages). Needs to be something global in other words. |
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
|