News Feed
Sections




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

Federico Cargnelutti's Blog:
Zend Framework DAL DAOs and DataMappers
September 22, 2009 @ 08:19:51

In his latest blog post Federico Cargnelutti talks about data access layers, data access objects, data mappers and how to implement them in a Zend Framework application.

In his example code he creates a few new directories in his basic application layout under the "lib" directory to contain the files for the mapper, data access layer and data objects. He uses s simple "user" table with first and last names and an ID to help identify the row.

The User model, mapper and data access object work together to make a simple "getUser" method as easy as creating a new Project_DataMapper_User object and setting up the entity before doing the fetch with a "get" call.

0 comments voice your opinion now!
zendframework dataobject datamapper tutorial dataaccess layer


blog comments powered by Disqus

Similar Posts

PHPMaster.com: Crop and Resize Images with ImageMagick

Pádraic Brady's Blog: Complex Views with the Zend Framework - Pt 5: The Two-Step View Pattern

NETTUTS.com: Run Your Own TinyURL Service With Phurl

Henrik Bjørnskov's Blog: Travis & Composer sitting in a tree K-I-S-S-I-N-G

Richard Lord's Blog: Managing 404 errors in the Zend Framework


Community Events





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


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

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