CodeIgniter Forums
Global data - Printable Version

+- CodeIgniter Forums (
+-- Forum: Archived Discussions (
+--- Forum: Archived Development & Programming (
+--- Thread: Global data (/showthread.php?tid=45993)

Global data - El Forum - 10-13-2011

Hello folks. I have a problem with the structure of a project. I need to load a model and a function in this method in a lot of my controllers functions, but I don't want to duplicate this code block for each of them.

How do I handle this organization? I tried to extend my controller to another but without sucess. Thanks!