ZF2: Using the ServiceManager as an Inversion of Control Container (Part 1)
Reese has posted ZF2: Using the ServiceManager as an Inversion of Control Container (Part 1) In Zend Framework 1, it was difficult to follow best practices when it came to writing testable code. Sure, you could make testable models, but once you need those models in a controller, what do you do? Zend Framework 2 makes it much easier. In this post, I'll cover the basics of injecting a model into a controller. He then… continue reading.