Welcome Guest, Not a member yet? Register   Sign In
common functions
#1

[eluser]natefons[/eluser]
i have some functions that are used by most of my controllers...is there a way that i can include these functions in all the controllers, rather than manually writing them out in each controller?
#2

[eluser]pickupman[/eluser]
You can do this by extending the controller class. There is a helpful link in my signature for base controllers. This allows you run or be able to have a common construct for all of your controllers.
#3

[eluser]CI_avatar[/eluser]
You can declare this functions as helpers or a library so you can call them in your controllers. I hope it can help you.
#4

[eluser]w0bbes[/eluser]
A model could do also




Theme © iAndrew 2016 - Forum software by © MyBB