Welcome Guest, Not a member yet? Register   Sign In
How models and the such exactly work in CI
#2

[eluser]Phil Sturgeon[/eluser]
Everthing loaded will be kept in the current "instance". Meaning Controllers, views can access anything loaded via $this or by using get_instance();

If for example you load a model or library in the constructor of the controller, it will be available to all fnuctions below it.

However they are only loaded for that page request. Click a new page which doesnt load the user model, and it wont work. Hope this makes sense.


Messages In This Thread
How models and the such exactly work in CI - by El Forum - 07-20-2007, 10:00 AM
How models and the such exactly work in CI - by El Forum - 07-20-2007, 11:21 AM
How models and the such exactly work in CI - by El Forum - 07-20-2007, 11:46 AM



Theme © iAndrew 2016 - Forum software by © MyBB