Welcome Guest, Not a member yet? Register   Sign In
Models that use other models? array of models? objects?? a case study
#4

[eluser]TheFuzzy0ne[/eluser]
You can have your product model pass back an array of product objects. So you can do something like:

Code:
$products = $this->products_model->get($start, $end); #  Where $start and $end are the limit and offset used for pagination.

Basically, you're model is what processes any input products, and interfaces with the database. Your objects can be fairly static, and don't have to have any methods - only properties.

I hope this helps.


Messages In This Thread
Models that use other models? array of models? objects?? a case study - by El Forum - 05-03-2009, 03:11 PM



Theme © iAndrew 2016 - Forum software by © MyBB