我完全赞成ZEND FRAMEWORK。我试图安装,但收到了一些错误。
我使用zf @ 1版本安装。
C:\xampp\php
将其命名为zendframework。include_path = ".;C:\xampp\php\PEAR;C:\xampp\php\zendframework\library"
运行命令zf show version
以zf错误结束,我的zend框架应该在include路径中。
zf create project zend_blog
是否正确?答案 0 :(得分:5)
Follow the given Instruction Below.
• Go to ‘My Computer’ > Properties > Advanced Tab > Environment Variables.
Environment Variables box will open, View SYSTEM VARIABLES,
scroll the list to ’ PATH ‘ > double click ’ PATH ‘ .
Add the following line to the end of the PATH C:\xampp\php
Zend Framework
• Extract the Zend Framework files to C:\xampp\php\zf.
• Edit the php.ini file. You will find it at C:\xampp\php\php.ini.
Find the line that says ’ include_path ’ and edit the line:
Windows: “\path1;\path2″
include_path = “C:\xampp\php\zf\library”
• Open a shell and cd to C:\xampp\htdocs folder and type this:
C:\xampp\htdocs>C:\xampp\php\ZendFramework\bin\zf.bat create project testproject(project name)
• Now Copy the Zend Folder from your ZendFramework folder ( C:\xampp\php\zf/library /Zend) into the library folder of your new test project ( C:\xampp\htdocs\testproject\library\Zend
答案 1 :(得分:0)
它与XAMPP无关。没有正确配置或没有正确的权限。
见这些:
答案 2 :(得分:0)
您需要将zend框架路径和php.exe路径放入windows path variable,以便从命令行运行命令。这在ZF1中很重要,因此Zend_Tool可以在命令行或Netbeans或其他Ide中工作。