Welcome Guest, Not a member yet? Register   Sign In
returning multiple values from a function in a model
#3

[eluser]CroNiX[/eluser]
Welcome to the forum! Please see my sig about putting your code in code tags.

You need to return $data from your load_data().
Then, in your display_page(), you would capture the returned data like
Code:
$data['model_data'] = $this->model_name->load_data($pid);
Then send $data as you are to the view, where you can access it as $model_data.


Messages In This Thread
returning multiple values from a function in a model - by El Forum - 05-24-2012, 08:04 AM
returning multiple values from a function in a model - by El Forum - 05-24-2012, 11:47 AM
returning multiple values from a function in a model - by El Forum - 05-24-2012, 11:47 AM



Theme © iAndrew 2016 - Forum software by © MyBB