News Feed
Sections




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

Rob Allen's Blog:
Setting up ZF2's ZendTool side by side with ZF1
September 20, 2010 @ 09:38:01

Rob Allen has a new post today about the upcoming Zend Framework 2 release and how, with a little convincing, you can get ZF1 and ZF2 to play nicely alongside each other with Zend_Tool.

If you want to play with the development versions of Zend Framework 2.0, then it's handy to be able to create ZF2 projects using the ZendTool command line tool. Rather unhelpfully, ZF2's ZendTool uses the same ini file (~/.zf.ini) as ZF1's Zend_Tool and the same zf.sh script filename, so you can't just put zf2 on to your path and it'll all just work. I am assuming that you're like me and have production sites using ZF1, so you probably don't want to mess up your current zf.sh usage. This is how I implemented side-by-side ZF cli scripts.

His is a three step process that involves the install of a copy of the Zend Framework 2 somewhere on your system, creating a new ini file for it and create a new bash script (called "zf2") that defines the new ini file location as a command line variable.

0 comments voice your opinion now!
zendtool zf1 zf2 zendframework version commandline


blog comments powered by Disqus

Similar Posts

PHPImact Blog: Refactoring the Front Controller of the Zend Framework

Andi Gutmans' Blog: ZF Well Represented at SourceForge Awards

Rob Allen's Blog: Setting up ZF2's Zend\Tool side by side with ZF1

ProDevTips.com: Writing a CMS/Community with Smarty and the Zend Framework: Part 5

Nessa's Blog: Using PHP to Display Version Info (I and II)


Community Events





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


interview install threedevsandamaybe refactor laravel developer list series framework opinion api code community language testing unittest symfony2 release introduction podcast

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