CodeIgniter Forums

Full Version: function & models
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

El Forum

[eluser]MMCCQQ[/eluser]
hii..

can i use a function in other functions in models?

El Forum

[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.

El Forum

[eluser]Colin Williams[/eluser]
php.net/functions
php.net/class