CodeIgniter Forums
Code restructuring - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forum-20.html)
+--- Forum: Archived General Discussion (https://forum.codeigniter.com/forum-21.html)
+--- Thread: Code restructuring (/thread-33526.html)



Code restructuring - El Forum - 08-30-2010

[eluser]Unknown[/eluser]
I have to make a CURL call in one of my modules.
So, I have written a function to make this CURL call.

But would it be beneficial if I shift this function to my module helper class instead of writing it in the module controller class?

If yes, how can I create a module helper class?