Inspired by Padraic Brady’s post on Fat Stupid Ugly Controllers and Chris Hartjes’ Fat Models, Skinny Controllers, I’ve been putting my controllers on a crash diet.
Slim controllers are easier to test, encourage the DRY principle and force business logic back into the model layer where it belongs.
In this first article, I’ll be looking at a [...]
Super-Skinny your Zend Framework Action Controllers (Part One)
by Steve on 09. Mar, 2010 in PHP, Zend Framework
Practical Nested Transactions with Zend_Db and MySQL
by Steve on 04. Mar, 2010 in MySQL, PHP, Zend Framework
The need to save dependent or child models appears frequently in object oriented applications. In such cases, it’s usually desirable to group all the save operations for a parent and its children into a single atomic transaction. Many RDBMS brands support transactions, but few can handle these kind of “nested” transactions.
This article discusses how to [...]
About Steve
PHP developer, internet marketeer and owner of Dogfood Media. A Zend Certified Engineer, loves his two dogs and home brewing. Lives by the sea in Kent.
Recent Comments