Welcome Guest, Not a member yet? Register   Sign In
Loading libaries, helpers, configs, models etc at call-time
#4

[eluser]Aken[/eluser]
First, you can load models, libraries and such inside each other. If one model requires the other, you can load it inside the first model.

Second, there's no built-in autoload functionality that will load on calls. You would have to create a base controller and your own __get() method to load resources. You'll need your own system of specifying whether you're loading a model or library or what, otherwise __get() won't really know what to call. It has it's downfalls, but would be a suitable solution if developed properly.


Messages In This Thread
Loading libaries, helpers, configs, models etc at call-time - by El Forum - 08-07-2012, 08:27 PM



Theme © iAndrew 2016 - Forum software by © MyBB