I’ve been writing lots of integration tests lately, for a system that has zero unit tests. Does this make me a bad programmer? Probably. But it’s so easy! This is in Kohana, using ORM, and so the model basically is the database (which idea I rather like), and mocking it or splitting it out to […]
A first draft of DataLog is up on Github now. It’s a Kohana module that works with ORM models for recording every change made to the data. From the README: This module is for keeping a log of changes made to ORM data. When added to an ORM model, it records who made what changes, […]
In Kohana (with Minion), actions and tasks are sort of similar. Both should be ‘thin’ and do nothing more than create objects of the domain model, and direct bits of those objects to various systems of output. Keeping them both in my mind today is helping me divorce the domain model’s interface from the usual […]
I hate it when my bug turns out to be somebody else’s! Hours gone! Still, it’s a relief… :-)
In which I try to implement column sorting in WebDB, but end up building a general system for persisting query string variables between HTTP requests. Sort of. In the old, Zend-based, WebDB, column sort order was passed as a $_GET parameter and then stored in per-table variables in $_SESSION. In the index controller, both were […]
First feedback about #WebDB: http://forum.kohanaframework.org/discussion/6112. Hurrah for #Kohana!
For the past month or so I have been working on rebuilding my little database interface — called WebDB — as a Kohana module. It’s now ready for a first alpha release; you can find it at github.com/samwilson/kohana_webdb. I’ll be putting a demo up soon, and hopefully getting a project set up for it at […]