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

[eluser]introvert[/eluser]
Hello,

I have some global functions within my CI application which are used at multiple places such as in library, controller, view, etc..

They should do not belong to any object/class since they're just improvements of php native functions like strip_tags, strip_whitespaces, .. I'm wondering what is the best approach to include them and where to store the file?

What do you do when you come to this situation?

If theres no specific solution maybe it would be the best to make separated library PHP functions and then load it when neccessary?

Thanks for help!
#2

[eluser]danmontgomery[/eluser]
http://ellislab.com/codeigniter/user-gui...lpers.html




Theme © iAndrew 2016 - Forum software by © MyBB