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.
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.