Do your controllers need other object instances to do their work? Well, how do you get your hands on those dependencies inside your controllers? Forget new Xyz() – that’s a road to hell. There is a better way in ZF2….
Alias BaseUrl Bootstrap Bug Circular dependency Configuration Controller Dependency injection DluBaseUrl DluPhpSettings DluTwBootstrap Form Module PHP ini settings Twitter bootstrap Vhost Zend framework 1 Zend framework 2
Copyright © 2013 ZF Daily