Welcome Guest, Not a member yet? Register   Sign In
Loading Models in __construct
#2

[eluser]cahva[/eluser]
Yes, constructor is the right place to load the model if its used in majority of methods in that controller.
Use $this->ouput->enable_profiler() to see how much it affects memory usage and load time when model is loaded/not loaded. The difference usually is so minimal that it doesnt matter.


Messages In This Thread
Loading Models in __construct - by El Forum - 10-11-2010, 06:18 PM
Loading Models in __construct - by El Forum - 10-11-2010, 06:54 PM
Loading Models in __construct - by El Forum - 10-11-2010, 06:59 PM



Theme © iAndrew 2016 - Forum software by © MyBB