Welcome Guest, Not a member yet? Register   Sign In
Custom helpers for your generic PHP functions?
#1

[eluser]Jakobud[/eluser]
I'm new to CI, but loving it so far.

In the old way of doing things, I'd typically have some sort of functions.php that would contain all sorts of generic functions I'd use here and there in my site and I'd pretty much load it up on every page.

But with CI, I'm not really sure the best way to accomplish this type of thing. I was thinking maybe just make a 'generic_helper.php', have it autoload, and then be able to call the functions from it whenever I need them.

Is that how experienced CI users typically do this?
#2

[eluser]Colin Williams[/eluser]
It depends on the nature of the functions. They might be appropriate as helpers or controller methods or model methods




Theme © iAndrew 2016 - Forum software by © MyBB