Where to put custom loop functions? - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5) +--- Forum: Libraries & Helpers (https://forum.codeigniter.com/forumdisplay.php?fid=11) +--- Thread: Where to put custom loop functions? (/showthread.php?tid=87428) |
Where to put custom loop functions? - DunogRamedu - 04-19-2023 To display a lot of arrays in different ways on a page, I need to loop through them. These arrays are generated by a module class. I am aware that it's not recommended to include functions on views, so I am looking for the best place to insert the functions file. I understand that I can extend helpers, but I don't want to do that. Instead, I would like to create a custom helper file for my loop functions, which I will call loops_helper.php. RE: Where to put custom loop functions? - InsiteFX - 04-21-2023 A helper or place in Common.php |