By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,626 Members | 1,750 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,626 IT Pros & Developers. It's quick & easy.

when to write a new controller in a OO php

P: 563
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.php 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.
Apr 29 '10 #1
Share this question for a faster answer!
Share on Google+

Post your reply

Sign in to post your reply or Sign up for a free account.