new controller in oo php

Posted by pradeep on Stack Overflow See other posts from Stack Overflow or by pradeep
Published on 2010-04-29T10:05:41Z Indexed on 2010/04/29 11:07 UTC
Read the original article Hit count: 146

Filed under:
|

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 controllers(class) and actions(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 controller.

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

  2. or a single controller for all actions related to a module.

© Stack Overflow or respective owner

Related posts about zend-framework

Related posts about php