News Feed
Jobs Feed
Sections




News Archive
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

Till Klampaeckel's Blog: Iterating over a table (with Zend_Db_Table and Zend_Paginator)

Sameer Borate's Blog: Detecting duplicate code in PHP files

Andi Gutmans' Blog: Launched andigutmans.com

IBM developerWorks: A step-by-step guide to publishing your own PEAR channels

DevShed: Building Concrete Validators


Community Events









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


framework release development testing community database zendframework2 code api example tool functional object opinion interview podcast event introduction language composer

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