News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Pascal Opitz's Blog:
An example of how to use Pimple DI with ZF 1.x
March 16, 2012 @ 08:30:37

Pascal Opitz has a really quick post to his blog showing a snippet of code about using Pimple with the Zend Framework 1.

After having had a look at Silex, and struggling with the somewhat cumbersome ini configurations and YADIF, I wanted to try out whether I could use Pimple as DI container for ZF 1.x Turns out I can, as you can just select Pimple to be the bootstrap container.

Hsi example (gist of the code here) also shows how to subclass the container and add in some default settings objects into the container. Pimple is a small, lightweight dependency injection container from Fabien Potencier of the Symfony framework.

0 comments voice your opinion now!
zendframework pimple dependencyinjection tutorial container bootstrap


blog comments powered by Disqus

Similar Posts

DevShed: Building an Image Generator Class with PHP 5

Gonzalo Ayuso: Building a Pimple/Container from a YAML file

Derick Rethans' Blog: Short URLs

HowTo Forge: Installing Lighttpd With PHP5 And MySQL Support On Fedora 7

PHPit.net: Building a simple MVC system with PHP5


Community Events

Don't see your event here?
Let us know!


podcast php7 voicesoftheelephpant example application framework language symfony series list introduction laravel community opinion interview composer api project yii2 part2

All content copyright, 2015 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework