Zend_Tool 设置问题
我
读到要创建一个项目,请执行 zf Windows windows 命令 (zf.bat
):
C:\>zf.bat create project newproject
我在我的 C:\wamp\www\Zend\bin,我想在
c:\wamp\www
中创建一个新项目
当我尝试运行 c:\wamp\www\zf.bat
时,我得到了一个错误消息:
"zf.bat is not internal or external command, operable program or batch file.."
然后我尝试了另一种方法:
c:\wamp\zend\bin\>zf.bat create project newproject
但我收到以下错误消息:
"php is not recognised internal or external command,oprable program or batch file"
我将 Zend Framework 放在 c:\wamp/Zend
中,并添加了 C:\wamp\zend\library
到我的 php.ini
中。
请帮我解决这个问题。 谢谢!
hai
I read that to create a project, execute the zf Windows windows command (zf.bat
):
C:\>zf.bat create project newproject
I saw zf.bat in my C:\wamp\www\Zend\bin
, I want to create a new project in c:\wamp\www
When I tried to run c:\wamp\www\zf.bat
, I got an error message:
"zf.bat is not internal or external command, operable program or batch file.."
Then I tried another method:
c:\wamp\zend\bin\>zf.bat create project newproject
But I got the following error message:
"php is not recognised internal or external command,oprable program or batch file"
I put the Zend Framework in c:\wamp/Zend
and I added C:\wamp\zend\library
in to my php.ini
.
Please help me troubleshoot this problem.
Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您需要将 php 和 zend 框架路径添加到系统环境变量中:
您现在应该可以在任何需要的地方使用 zf 命令行工具,只需键入“zf”即可获取帮助信息并确保正确输入路径。
You need to add php and the zend framework paths to your system environmental variables:
You should now be able to use the zf command line tool anywhere you need it by typing "zf" to get the help info and to ensure you put the paths in properly.
您好,您可能需要在路径上有 php.exe 才能使用 zf.bat
尝试编辑 zf.bat 并确保使用脚本中的完整路径,您的 php.exe 可能位于您的 wamp 目录中
Hello you probably need to have php.exe on your path to use zf.bat
try to edit the zf.bat and make sure to use the full path in the script your php.exe is probably located in your wamp directory somewhee