Hi This is either very specific or very general code - I'm not sure, and I'm new to Zend framework / oo in general. Please be patient if this is stupid Q ...
Anyway, I want to create a model that does something like:
Read all the itmes from a table 'gifts' into a row set
for each row in the table, read from a second table which shows how many have been bought, the append this as another "field" in the returned row
return the row set, with the number bought included.
Most simple Zend examples seem to use only one table in a model, but my reading seems to suggest that I should do most of the work there, and not in the controller. If this is too general a question, any example model that works with 2 tables and returns an array would be great!
Thanks for your help in advance!
source
share