Active Record
Active Record is a "design pattern"—another of those highly abstract systems like MVC, which provide templates for solving common coding problems. In itself, it isn't code, it is just a pattern for code. There are several different interpretations of it. At its core is the creation of a relationship between your database and an object, every time you write a query. Typically, each table is a class (represented by our models), and each single row becomes an object. All the things you might want to do with a table row, for example, create it, read it, update it, or delete it, become "methods", which that object inherits from its class. CakePHP is built around the Active Record pattern, and so is CI—although the exact implementation ...
Get CodeIgniter 1.7 now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.