I’d like to address questions about DB2 support in Zend Framework 2.x. Because I helped create the IBM i-friendly DB2 adapter for Zend Framework 1.x, I’ve followed the development of a similar adapter for ZF2.
(updated January 30, 2013, upon the release of ZF 2.1)
Q. Does ZF 2 include an adapter for DB2?
A. Yes! Starting with ZF 2.1, which was released today.
Q. Is Alan’s IBM i-friendly DB2 adapter for Zend Framework 1.x needed in 2.x?
A. No. Because ZF’s Zend_Db equivalent in 2.x works differently than in 1.x, my 1.x component is not needed in 2.x.
Q. Does ZF 2.1′s DB2 adapter work with IBM i?
A. Yes! Please try it and provide feedback to the ZF team.



I’ve updated this post to reflect today’s release of ZF 2.1, which includes a DB2 adapter that works with IBM i.
Hi Alan
Does ZF2 have to be installed outside of the Zend Server updates?
Hotfix 7 does not seem to update ZF1 to ZF2.
Regards
Andy Youens
Hi, Andy,
You wouldn’t want an automatic ZF1-to-ZF2 update. ZF2 is a major redesign with its own learning curve.
At present, you’ll have to download and install ZF2 yourself, which is a good idea anyway, because you’ll get the latest version. Download ZF2 here: http://www.framework.zend.com/.
Alan
Thanks for the reply Alan, appreciated.
Will you be doing any presentations on ZF2 on the IBM I in the near future?
Best Regards
Andy
Andy, yes, I have a ZF2 on IBM i talk scheduled for COMMON in April, 2013.
Details here: http://www.alanseiden.com/presentations/upcoming/
Alan
To answer your original question, Andy, Hotfix 7 does include Zend Framework 2.02, but it’s installed in a separate folder from ZF 1. Therefore, your applications won’t automatically update, which is good, because ZF2 is quite different from ZF1. What’s more, ZF 2.02 didn’t have a DB2 adapter. The DB2 adapter was shipped with the later release 2.1.
Here are the paths where ZF1 and 2 are installed by default:
ZF1: /usr/local/zendsvr/share/ZendFramework
ZF2: /usr/local/zendsvr/share/ZendFramework2
Spot on!
Many thanks Alan
Regards
Andy