News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

MaltBlue.com:
Are TableGateways Worth it in Zend Framework 2?
November 27, 2013 @ 11:34:28

On his MaltBlue.com blog Matthew Setter shares his opinion on TableGateways in Zend Framework v2 and wonders if they're "worth it" (as they're not the easiest thing to implement).

Are TableGateways too hard to implement in Zend Framework 2? Are they too hard to justify the effort? That's what I was asked recently during a Twitter conversation. For me, they're not. For me, they're well worth the effort. So I've written this post to show why they're not, and how they bring great flexibility, when implemented correctly. In [this post] I'll set out why they can be a good solution, as well as why not.

He starts from the origins of PHP scripts, back when they were "a collection of files" and not structured under much of a framework. Complexity added the need for this structure, though, including things like design patterns for common tasks. The TableGateway was one of these. He talks briefly about implementing them in Zend Framework v2 (with some gist examples) and some questions to ask helping you determine if they're "too much" for you app.

0 comments voice your opinion now!
tablegateway designpattern zendframework2 implement difficulty

Link: http://www.maltblue.com/patterns/why-tablegateways

blog comments powered by Disqus

Similar Posts

Kevin Schroeder's Blog: A little more advanced ZF2 EventManager usage

Zend.com: Zend Framework 2.0 Beta 3 Release Gives Developers an Early Start

Gonzalo Ayuso: Combining Zend Framework2 and Symfony2 components with Composer to build PHP projects

Zend Developer Zone: Observer pattern in PHP

MaltBlue.com: \Zend\Db\Sql - Creating Joins and Unions with Ease


Community Events





Don't see your event here?
Let us know!


laravel install configure library release code developer unittest podcast api interview series introduction community wordpress application testing list language threedevsandamaybe

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework