I would like to see how good models look like in real app, Action
Controller --> Service Layer(s) --> Model(s) --> Table(s). flow in
real
example.
I use to simplify my app by extending Zend_Db_Table and using it as a
model,
used Zend_Db_Table_Row as a model too, but looks like that is not a good
idea, maybe they should be used like POJOs in hibernate apps not like Table
Data Gateway. Also, domain model is not always the best solution. Data
mapper is good, but I'm always comfused on how mapper should really look
like.
Is there a real good example out there, maybe some github url?
Regards,
Saša Stamenković
没有评论:
发表评论