Welcome Guest, Not a member yet? Register   Sign In
Unable to get the model function parameter value
#1

[eluser]shadowchest[/eluser]
In a model file, I have a function functionname($param=false) { echo $param; }. In a controller file, I call the function by return $this->modelname->functionname(true); This should return a "true" value since I set the parameter to true, but still it returns false. Any idea?

I am using CI Version 1.7.3, by the way.


Messages In This Thread
Unable to get the model function parameter value - by El Forum - 07-09-2011, 09:24 PM
Unable to get the model function parameter value - by El Forum - 07-09-2011, 09:45 PM
Unable to get the model function parameter value - by El Forum - 07-09-2011, 09:52 PM
Unable to get the model function parameter value - by El Forum - 07-09-2011, 09:56 PM
Unable to get the model function parameter value - by El Forum - 07-10-2011, 12:50 AM



Theme © iAndrew 2016 - Forum software by © MyBB