Welcome Guest, Not a member yet? Register   Sign In
Getting "Undefined property" error message
#6

[eluser]danmontgomery[/eluser]
[quote author="mddd" date="1276693125"]Inside a controller or model, $this means: the CI object.[/quote]

This is incorrect... $this represents whatever object you're currently working in. In the controller, it's the controller class. In the model, it's the model class. The model just inherits most of the controller's members when it's instantiated (See Model::_assign_libraries).


Messages In This Thread
Getting "Undefined property" error message - by El Forum - 06-14-2010, 06:00 PM
Getting "Undefined property" error message - by El Forum - 06-14-2010, 07:26 PM
Getting "Undefined property" error message - by El Forum - 06-15-2010, 10:18 AM
Getting "Undefined property" error message - by El Forum - 06-16-2010, 01:58 AM
Getting "Undefined property" error message - by El Forum - 06-16-2010, 09:39 AM
Getting "Undefined property" error message - by El Forum - 06-16-2010, 11:26 AM



Theme © iAndrew 2016 - Forum software by © MyBB