News Feed
Sections




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

NetTuts.com:
Evolving Toward a Persistence Layer
September 12, 2012 @ 10:51:17

On NetTuts.com there's a new article posted that introduces you to the concept of a persistence layer in a PHP application:

One of the most confusing design pattern is persistence. The need for an application to persist its internal state and data is so tremendous that there are likely tens - if not hundreds - of different technologies to address this single problem. Unfortunately, no technology is a magic bullet. [...] In this tutorial, I will teach you some best practices to help you determine which approach to take, when working on future applications. I will briefly discuss some high level design concerns and principles, followed by a more detailed view on the Active Record design pattern, combined with a few words about the Table Data Gateway design pattern.

Included in the post is a high-level application design with the business logic is at the core and the persistence technology/layer exists outside of it. They show how to create a simple, working solution for a persistence layer to handle a blog post and its contents. It talks about characterization tests, the table gateway design pattern and the possible move to the active record pattern.

0 comments voice your opinion now!
persistence layer tutorial logic blog example


blog comments powered by Disqus

Similar Posts

The Bakery - Rails-Like Validation, Elistic, Textile, and a CakePHP Release

Hiveminds: How to Bridge PHP and Java for Powerful Web Solutions

IBM developerWorks: U2 PDO Driver Tutorial, Parts 1 & 2

PHPClasses.org: Book Review: Drupal: Creating Blogs, Forums, Portals and Community Websites

Zend Developer Zone: How to avoid Identity Theft in Zend Framework with Zend Auth


Community Events





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


developer experience language series opinion threedevsandamaybe install interview release laravel testing introduction unittest list symfony2 framework community refactor code podcast

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