• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
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

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.