Welcome Guest, Not a member yet? Register   Sign In
best practise loading in model $this vs get_instance()
#2

[eluser]moodh[/eluser]
Libraries, not models (as long as you extend the base model).
That's because $this (CI's superglobal) doesn't exist in your libraries (your own libraries $this), that's why you load in the instance to access it.


Messages In This Thread
best practise loading in model $this vs get_instance() - by El Forum - 09-20-2009, 01:46 PM
best practise loading in model $this vs get_instance() - by El Forum - 09-20-2009, 02:54 PM
best practise loading in model $this vs get_instance() - by El Forum - 09-20-2009, 02:56 PM



Theme © iAndrew 2016 - Forum software by © MyBB