when to write a new controller in a OO php

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • pradeepjain
    Contributor
    • Jul 2007
    • 563

    #1

    when to write a new controller in a OO php

    Hi ,
    I have a practical doubt ,

    I am using OO php , and i am new to it. I am using zend framework to be clear.

    I am writing models(class) and methods with in it say PatientMapper.p hp which has all single mysql table related actions and Patient.php which has all setter and getter functions.

    I get a doubt that when should i write a new model.

    1. Should i write a model for all the actions on a single mysql table .

    2. or a single model for all actions related to a module.
    Last edited by pradeepjain; Apr 29 '10, 01:26 PM. Reason: question error
Working...