如何在zend框架中使用命令提示符创建控制器 [英] How to create controller using command prompt in zend framework

查看:19
本文介绍了如何在zend框架中使用命令提示符创建控制器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是 Zend 框架的新手.我已将 bin 和 library 文件夹放在:

I am new to zend framework.I have placed my bin and library folder in :

C:\xampp\htdocs\zend

并使用命令提示符创建了项目.

and have created project using command prompt.

C:\xampp\htdocs\zend\bin> zf create project zendtest

在文件夹中创建项目zendtest -> C:\xampp\htdocs\zend\bin\

its creating project zendtest in folder -> C:\xampp\htdocs\zend\bin\

C:\xampp\htdocs\zend\bin>cd zendtest

但是当我尝试创建模块时

but when i tried to create module

C:\xampp\htdocs\zend\bin\zendtest> zf create module testmodule

它说'zf'不被识别为内部或外部命令.

在创建控制器时也出现同样的错误.

On creating controller also giving same error.

如何解决这个问题.

推荐答案

您需要将其添加到系统的 PATH 中.看看这里:

You need to add it to your system's PATH. Take a look here:

http://framework.zend.com/manual/en/zend.tool.extending.html#zend.tool.extending.zend-tool-framework.cli-client.setup-windows

应该就像将您的 Zend Framework 的 bin 文件夹的路径添加到 PATH 一样简单,并且您应该设置.

Should be as simple as adding the path to your Zend Framework's bin folder to the PATH, and you should be set.

这篇关于如何在zend框架中使用命令提示符创建控制器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆