Welcome Guest, Not a member yet? Register   Sign In
variable from model to controller
#2

[eluser]jvicab[/eluser]
you can pass values from a model function to a calling controller by returning it. If you have more than one value to be returned, you have two choices: or create a multiarray and returning it (like return $myarrayWink or using parameters passed by refrerence to model function.
Try not to use variable names that could be actually in used by codeigniter or php!


Messages In This Thread
variable from model to controller - by El Forum - 08-16-2011, 03:07 AM
variable from model to controller - by El Forum - 08-17-2011, 08:34 AM



Theme © iAndrew 2016 - Forum software by © MyBB