I just downloaded Zend Server Community Edition for windows and found that it did not include the ZF utility included in the tutorials. I downloaded and unzipped the Zend Framework(version 1.7.8, because version 1.8 would not download properly). This includes the zf.bat utility which is meant to generate the basic project files. Unfortunately, neither seem to include the CodeGenerator package which is required for the tool to operate. The error I receive is:
H:\zend>zf
Warning: require_once(Zend/CodeGenerator/Php/File.php): failed to open stream: N o such file or directory in D:\Simon\code\zend\ZendServer\share\ZendFramework\in cubator\library\Zend\Tool\Project\Context\Zf\ControllerFile.php on line 4
Fatal error: require_once(): Failed opening required 'Zend/CodeGenerator/Php/Fil e.php' (include_path='D:\Simon\code\zend\ZendServer\share\ZendFramework\incubato r\library;D:\Simon\code\zend\ZendServer\share\ZendFramework\library;.;D:\Simon\c ode\zend\ZendServer\share\ZendFramework\library') in D:\Simon\code\zend\ZendServ er\share\ZendFramework\incubator\library\Zend\Tool\Project\Context\Zf\Controller File.php on line 4
I have been searching around and found a few discussions. Some other have had the same problem, and fixed it by checking out the latest svn with the following commands:
cd $PATH_TO_ZF/ZendFramework-1.7.7
cp -r incubator/library/Zend/Tool/ library/Zend/
cp -r incubator/library/Zend/Reflection/ library/Zend/
cd library/Zend/Tool
mkdir CodeGenerator
cd CodeGenerator
svn co http://framework.zend.com/svn/framework/standard/incubator/library/Zend/CodeGenerator .
cd ..
find . | grep -v .svn | xargs perl -pi -e "s|Zend/CodeGenerator|Zend/Tool/CodeGenerator|g"
find . | grep -v .svn | xargs perl -pi -e "s|Zend_CodeGenerator|Zend_Tool_CodeGenerator|g"
Unfortunately, the latest svn doesn't have CodeGenerator either.