Where to store common 'global' functions? |
(09-16-2019, 11:59 AM)bustersg Wrote:(09-16-2019, 11:34 AM)kilishan Wrote: If you want them loaded all of the time, you can add them App/Common.php. You only need to "extend" if they're the same name as another one. Create a new file for your own helpers. Based on your comment, we'll call it database_helper.php. Store this file at App/Helpers/database_helper.php. Then use [b]helper('database')[b] when you need to load them. Or autoload them per-controller. |
Messages In This Thread |
Where to store common 'global' functions? - by bustersg - 09-16-2019, 10:04 AM
RE: Where to store common 'global' functions? - by kilishan - 09-16-2019, 11:34 AM
RE: Where to store common 'global' functions? - by bustersg - 09-16-2019, 11:59 AM
RE: Where to store common 'global' functions? - by kilishan - 09-16-2019, 01:00 PM
|