Welcome Guest, Not a member yet? Register   Sign In
Extract multiple rows from DB and pass values to view
#4

[eluser]cartalot[/eluser]
in the model you might want to try returning an object, it can be much simpler to deal with
Code:
return $query->row();

would also suggest doing as much logic as you can in the model and controller
so like if no results back from model -- do your logic in the controller as to what gets passed and shown in view
then keep view as simple as possible


Messages In This Thread
Extract multiple rows from DB and pass values to view - by El Forum - 06-30-2012, 08:35 AM
Extract multiple rows from DB and pass values to view - by El Forum - 06-30-2012, 10:49 AM
Extract multiple rows from DB and pass values to view - by El Forum - 07-01-2012, 02:51 AM
Extract multiple rows from DB and pass values to view - by El Forum - 07-03-2012, 11:02 AM



Theme © iAndrew 2016 - Forum software by © MyBB