Can I load a model in my controllers constructor..... - 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: Can I load a model in my controllers constructor..... (/showthread.php?tid=26839) |
Can I load a model in my controllers constructor..... - El Forum - 01-24-2010 [eluser]mabright[/eluser] If I want to use a a model in all my controller functions, do I need to load the model in each function or can I load in the constructor or index function? I do not want to autoload the model. Can I load a model in my controllers constructor..... - El Forum - 01-24-2010 [eluser]JanDoToDo[/eluser] load it in the constructor Can I load a model in my controllers constructor..... - El Forum - 01-24-2010 [eluser]mabright[/eluser] gracias |