Welcome Guest, Not a member yet? Register   Sign In
accessing data in a controller
#2

[eluser]Jay Logan[/eluser]
Just make a variable that gets your model data.
Code:
$variable = $this->whatever_model->whatever_function();

Am I missing something? If you are trying to return your data like this:

Code:
$some_column = $variable->column_name;

Then you need to return your model data as a row_array(). Don't know if that's a requirement but it works for me. And result_array() lets you get more than one row.


Messages In This Thread
accessing data in a controller - by El Forum - 09-02-2009, 04:13 AM
accessing data in a controller - by El Forum - 09-02-2009, 04:26 AM
accessing data in a controller - by El Forum - 09-02-2009, 06:56 AM
accessing data in a controller - by El Forum - 09-02-2009, 07:05 AM
accessing data in a controller - by El Forum - 09-02-2009, 07:10 AM
accessing data in a controller - by El Forum - 09-02-2009, 07:13 AM
accessing data in a controller - by El Forum - 09-02-2009, 07:20 AM
accessing data in a controller - by El Forum - 09-02-2009, 07:22 AM
accessing data in a controller - by El Forum - 09-02-2009, 07:40 AM



Theme © iAndrew 2016 - Forum software by © MyBB