how's models loaded should be in MVC pattern?

#3
[eluser]BrianDHall[/eluser]
Yes, Phil is right on all counts, but I figure I will add a little extra info to let you know why yours isn't working.

In a Model $this refers to the object Model, not to the main CI object that $this refers to in Controllers and Views. This drove me nuts when I was trying to update sessions from a Model for authentication purposes, and Phil's solution is the right one.


Messages In This Thread
how's models loaded should be in MVC pattern? - by El Forum - 09-08-2009, 03:14 AM
how's models loaded should be in MVC pattern? - by El Forum - 09-08-2009, 08:51 AM
how's models loaded should be in MVC pattern? - by El Forum - 09-08-2009, 11:10 AM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


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