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
zend-framework
|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 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.
Should i write a controller for all the actions on a single mysql table .
or a single controller for all actions related to a module.
© Stack Overflow or respective owner