且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

zend 框架 zf 命令不起作用

更新时间:2023-02-25 18:09:05

我知道你说过你已经添加了 php 和库路径,但如果你能再次确保你的环境变量定义正确,那就太好了.

I know you said you've added the php and library path but if you could make sure again that the your environment variables are definitley set correctly that would be great.

注意:它是 zend 工具正常工作所需的 bin 目录.

如果在此之后仍然无法工作,请告诉我,我们可以从那里开始.

If still not working after this let me know and we can go from there.

变量名:应该设置为

Path

和变量值:应该包含一个链接

And the Variable value: should contain a link like

C:\Zend\ZendServer\share\ZendFramework\bin;

您的链接可能会有所不同,因为我将 Zend Server 安装在与默认位置不同的位置,并且该框架可通过共享"目录获得.

Your link is likely to be different as I installed Zend Server in a different location from default and the framework is available through the 'share' directory.

确保您放在那里的链接指向 zf.bat(在 Windows 系统上 - 我相信您正在使用 WAMP)所在的目录,并且您应该能够从命令提示符使用只是 zf 命令.

Make sure the link you put in there points to the directory that the zf.bat (on a Windows system - I believe you're using WAMP) lives in and you should be able to test it's working from a command prompt using just the zf command.

进入可以更新环境变量的 GUI:

To get to the GUI where you can update the environment variables:

1) Right click on the Computer icon on your Desktop and choose Properties option.
2) In the System window click on Advanced system settings in the left pane
3) In the System Properties window select Advanced tab and click on Environment Variables
4) In the Environment Variables window you will notice two columns - User variables for a username and System variables
5) In the System variables section scroll down to 'Path' and then highlight it and click 'Edit'
6) At the end of the last entry place a ; character and then paste the path to the ZendFramework\bin on your system like above

希望这会有所帮助,

戴夫