Trying to understand MVC Models, Advice?

Posted by Tyler on Stack Overflow See other posts from Stack Overflow or by Tyler
Published on 2010-05-05T04:07:17Z Indexed on 2010/05/05 4:18 UTC
Read the original article Hit count: 274

Filed under:
|
|
|

I am writing my own MVC for the purpose of learning it. I have pretty much everything "down-pat" and my main stuff written besides models due to some trouble understanding them and lack of viable examples.

Now, I've been told a model should reprecent a single row, someone told me, your model class should on update/insert and delete rows, anything that involves fetching a single or multiple rows - a "finder" class should be used.

So... a) what is a finder class, b) how do I implement it in a useage example, c) Is what I've been told about models correct or is there a better way than "finders"?

Advice is much appricated :)

© Stack Overflow or respective owner

Related posts about php

Related posts about mvc