[eluser]Sumon[/eluser]
Global functions can be shared CI helper. More about
helper in CI User Guide.
Moreover, in model functions of any model is also available and you can access it by either $this->function name() or model_name::function_name().
Hope it helps you.