Welcome Guest, Not a member yet? Register   Sign In
MVC question (view-controller relationship)
#10

[eluser]BrianDHall[/eluser]
[quote author="wiredesignz" date="1252558987"][quote author="BrianDHall" date="1252525937"]... even ensuring that $this in views refers to the codeigniter object itself...[/quote]

$this in views, refers to the loader object, not the controller (codeigniter) object. The controller class variables are assigned to the loader during view rendering.[/quote]

I actually found this out the hardway myself today, LOL. I could have sworn it worked differently, but it must have been a false memory.

Tu che!


Messages In This Thread
MVC question (view-controller relationship) - by El Forum - 09-07-2009, 08:00 PM
MVC question (view-controller relationship) - by El Forum - 09-07-2009, 08:13 PM
MVC question (view-controller relationship) - by El Forum - 09-08-2009, 01:57 AM
MVC question (view-controller relationship) - by El Forum - 09-08-2009, 02:22 AM
MVC question (view-controller relationship) - by El Forum - 09-08-2009, 03:30 AM
MVC question (view-controller relationship) - by El Forum - 09-09-2009, 04:05 AM
MVC question (view-controller relationship) - by El Forum - 09-09-2009, 05:15 AM
MVC question (view-controller relationship) - by El Forum - 09-09-2009, 08:52 AM
MVC question (view-controller relationship) - by El Forum - 09-09-2009, 06:03 PM
MVC question (view-controller relationship) - by El Forum - 09-09-2009, 08:39 PM



Theme © iAndrew 2016 - Forum software by © MyBB