The canal lock

Site menu:

Some notes on AcLib

AcLib is a php5 web app framework that I've been writing for some time, it's designed around the mvc pattern but is not a re-write of ror. It's designed around a core group of interface classes which set out the application's interactions & flow and goes beyond the simplistic reduction to only three main types (m, v and c) that rails attempts.

A central feature will be finding / getting Models from a single IDMap instance which in turn uses individual model mapper classes to load, save, update, delete etc model instances. Programmers will not create Model instances for themselves. Centralisation of model object creation has a number of benefits.

  • Each model is loaded only once
  • You are guaranteed to get the sole instance representing the model's data
  • Each model is saved only once, and only if it's been edited
  • Client code is separated from finding model classes & their storage
  • Model classes are separated from their storage