Global data - 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: Global data (/showthread.php?tid=45993) |
Global data - El Forum - 10-13-2011 [eluser]marcoslavorato[/eluser] 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! |