在windows系统中运行zend工具
我正在尝试学习zend框架。我正在使用该网站提供的快速入门教程。当我继续时,我注意到该站点提供的 zend 工具命令不适用于 Windows 系统。
我遇到的问题是
% zf configure db-adapter \
> 'adapter=PDO_SQLITE&dbname=APPLICATION_PATH "/../data/db/guestbook.db"' \
> production
如何在CMD中运行这个命令?我尝试了几种变体,但它们都给出了错误的输出。另外,如果您能给我提供一个参考资料,我可以从中学习 Windows 的 zend 工具命令,那就太好了。
I am trying to learn zend framework. I am using the quick start tutorial provided at the site for this. While, I am going on, I noticed that the zend tool commands provided at that site, is not intended for windows system.
The point I am stuck in is
% zf configure db-adapter \
> 'adapter=PDO_SQLITE&dbname=APPLICATION_PATH "/../data/db/guestbook.db"' \
> production
How to run this command in CMD? I have tried several variations but they all give wrong output. Also, it would be great full if you could point me to a reference from which I could learn zend tool commands for windows.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
说它不适合 Windows 是不正确的。对于每个版本的 Zend Framework,您都会获得一个适用于 Windows 的 zf.bat!所有操作系统的命令都完全相同。因此,要使其工作,您唯一要做的就是将 zf.bat 所在的 ...\bin 目录的路径添加到您的 Windows 系统路径中。
Zend_Tool_Framework 程序员参考指南
It is not true that it is not intended for Windows. With every version of Zend Framework you get a zf.bat for Windows! The commands are exactly the same for all OSs. So the only thing you have to do to make it work is to add the path to the ...\bin direcotry where the zf.bat is located to your windows system path.
Zend_Tool_Framework Programmer's Reference Guide