24
Using Zend Framework components in a Symfony2 project
16 Comments · Posted by Christian in The real job
Recently I wanted to use a part of the Zend Framework (v1) in my Symfony2 project.
After struggeling with the autoloading for a while and a little help from fellow developers on Twitter I found it actually to be quite easy.
First I move the ZF sources in /vendor/zf. I chose an unofficial github mirror for this.
Next I had to register a prefix (note: not registering a namespace!).
Now everything is almost working but there will be a lot of warnings and fatals because of all those require_once() in ZF.
Following the official ZF documentation I removed them.
Now you can just instanciate every ZF component you want.
Btw. thanks go out to Nils from PHP hates me! for the ZF/symfony logo that I stole for this post.


Pingback: Tweets that mention • Using Zend Framework components in a Symfony2 project | test.ical.ly -- Topsy.com
Pingback: abcphp.com
Pingback: Christian Schaefer’s Blog: Using Zend Framework components in a Symfony2 project | Development Blog With Code Updates : Developercast.com
Pingback: ZF library integration with Symfony2. « Codeperl's Knowledge Sharing System