CodeIgniter Forums
function & models - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forum-20.html)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forum-23.html)
+--- Thread: function & models (/thread-12076.html)



function & models - El Forum - 10-04-2008

[eluser]MMCCQQ[/eluser]
hii..

can i use a function in other functions in models?


function & models - El Forum - 10-04-2008

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


function & models - El Forum - 10-05-2008

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