Thanks Abraham for your comments!
From: Abraham Block [mailto:atblock@gmail.com]
Sent: Wednesday, July 29, 2009 6:43 PM
To: Vibhor Singh
Cc: fw-mvc@lists.zend.com; fw-general@lists.zend.com
Subject: [fw-general] Re: [fw-mvc] - Where to put common DB calls
I would suggest either to use a DAO pattern to encapsulate all your database calls in a well known area, or to read in your queries from some kind of configuration file (a "named query") approach. This will help from having SQL queries spread like an infestation of ants.
Is there anything specific that you had in mind?
On Wed, Jul 29, 2009 at 9:07 AM, Vibhor Singh <vibhor@pivisions.net> wrote:
Hi,
Can someone plz tell me whether there is any provision in ZF where I can put my common DB related functionalities, something like how action helpers is to controllers?
All suggestions are welcome.
Thanks,
Vibhor
没有评论:
发表评论