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

[eluser]wiredesignz[/eluser]
[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.


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