Welcome Guest, Not a member yet? Register   Sign In
access controller variables in a model
#1

[eluser]Unknown[/eluser]
i dont know, i have been trying to find a logic in it for hours ... but i cant find out

from a model i can access a variable declare in the calling controller
i can use it, echo it, and display his content

but i can not do an isset on this variable
it will return false

to be able to test if a variable exists in my controller from my model, i have to use & get_instance(), and then i ll be able to test if the var exists or not

even if i display the defined variables in my model, it wont display my controller's variable, but still i ll be able to use those variables ???

can anyone explain me please

cheers


Messages In This Thread
access controller variables in a model - by El Forum - 02-07-2012, 08:33 AM
access controller variables in a model - by El Forum - 02-07-2012, 01:38 PM
access controller variables in a model - by El Forum - 02-08-2012, 08:42 AM
access controller variables in a model - by El Forum - 08-21-2012, 12:57 PM
access controller variables in a model - by El Forum - 08-21-2012, 02:54 PM



Theme © iAndrew 2016 - Forum software by © MyBB