Posts Tagged ‘activerecord’

PHP Models

09:42pm on Sunday, June 8th, 2008 | , No Comments »

I wanted an object-oriented way of accessing a database that strikes a good balance between abstracting the details of SQL escaping, insert or update, etc and going too far to the point where the benefits are drowned out by the abstraction. In this article I present the system I am currently using. It does most of what I wanted but certainly has potential for further improvement.

The main reason this post exists is due to a request from someone on the PHP-General list. This code is not intended to be bug-free or extensively tested or indeed anything. Treat it as you would any other experimental code. Read the rest of this entry »

 
The Stut.net blog is proudly powered by WordPress | Entries (RSS) and Comments (RSS)
Generated in 0.5693 seconds. All content copyright © Stuart Dallas unless otherwise stated.
Design and content licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 2.0 License