无法打开输入文件应用程序/控制台 [英] Could not open input file app/console

查看:33
本文介绍了无法打开输入文件应用程序/控制台的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我安装了 wamp 服务器和 Symfony2 框架的副本.我正在尝试使用以下命令创建一个 Bundle:

I installed wamp server and a copy of the Symfony2 framework. I am trying to create a Bundle, using the following command:

php app/console generate:bundle --nampespace=IDP/IDP_Bundle --format=yml

我的 PHP 在 C:/wamp/bin/php/php5.3.10

但是当我运行命令时它说:

But when I run the command it says:

could  not open input file app/console

谁能告诉我出了什么问题?

Can anyone tell me what is going wrong?

推荐答案

不要从 php 路径运行命令.

Dont run the command from the php path.

将 php 添加到您的路径环境变量中

Add php into your path environment variable

然后cd到项目

C:/wamp/www/yourproject

然后运行命令

php app/console generate:bundle --nampespace=IDP/IDP_Bundle --format=yml

它会起作用

这篇关于无法打开输入文件应用程序/控制台的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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