News Feed
Sections




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

DevShed:
Using the Active Record Pattern with PHP and MySQL
March 05, 2009 @ 11:15:08

DevShed has started up a new series looking at one of the more popular software design patterns - the Active Record pattern. In this first part of the series they introduce the pattern and include a little code to get things started.

Using the active record pattern to develop a database-driven application offers many advantages. It can save PHP developers a wealth of time in coding and code maintenance, because you can take advantage of SQL abstraction.

First they set up a simple data mapping class (using methods like setFirstName to change the "firstname" property of the object) then a MySQL abstraction class and, in the last page of this first part, he combines the two to make a simple Active Record example.

0 comments voice your opinion now!
activerecord designpattern tutorial mysql datbase abstraction


blog comments powered by Disqus

Similar Posts

Vid Luther's Blog: Changing MySQL storage engine for one table in your Propel/Symfony project

Web Development Blog: Sending e-mails via SMTP with PHPmailer and Gmail

MaltBlue.com: Zend Framework 2 Forms - Simple and Available Everywhere

Jeremy Cook's Blog: Recursive Closures in PHP 5.3

PHPBuilder.com: Creating an Online Survey (Part 2)


Community Events





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


deployment list community laravel interview api series zendserver framework symfony release voicesoftheelephpant conference tips threedevsandamaybe code podcast introduction bugfix language

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