How can I call custom made helper function in another custom made helper function - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: How can I call custom made helper function in another custom made helper function (/showthread.php?tid=10419) |
How can I call custom made helper function in another custom made helper function - El Forum - 07-30-2008 [eluser]Blue Sapphire[/eluser] Hi! I have two custom made helper fucntions. How can I call one custom made helper fucntion in other custom made helper function. Code of two custom made helper functions is below: Code: function JEncode($arr){ I am calling function "JEncode" in second function "mCountry". Am I calling it correctly or not. Thanks in advance How can I call custom made helper function in another custom made helper function - El Forum - 07-31-2008 [eluser]Blue Sapphire[/eluser] Still waiting for some solution How can I call custom made helper function in another custom made helper function - El Forum - 07-31-2008 [eluser]Yash[/eluser] You are accessing database in helper? I don't like this idea. Helper should contain all functions in it which are related to each other. Even if you want you can try creating super object I mean creating reference like thing.I've only idea so can't help much. |