键入命令“蛋糕”在控制台中显示没有输出 [英] Typing the command "cake" in console shows no output

查看:230
本文介绍了键入命令“蛋糕”在控制台中显示没有输出的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在控制台中输入命令cake显示没有输出,没有错误或任何类似的。它只打印约4个空行。

以前有人遇到过这个问题,您是如何解决的?

  C:\xampp\htdocs\project\app> cake 



C:\xampp\htdocs\project\app>


解决方案

蛋糕不是直接在应用程序中 - 在正确的文件夹中,您仍然需要从那里调用cake命令relative:

  \app> .\Console\\蛋糕

请注意,此语法是Windows独有的



对于UNIX使用

  \app> Console / cake 
pre>

如果你使用的是旧的应用程序版本或者没有使用控制台文件夹(你应该应用)烘焙你的应用程序,你也可以调用蛋糕核心版本的相对来自APP dir:

  \app> .. \lib \Cake\Console\cake 

(WIN)

  \app> ../ lib / Cake / Console / cake 

UNIX)



蛋糕文件需要有足够的执行权(主要是UNIX),PHP必须在系统env路径下。然后它将全部开箱。


Typing the command "cake" in console shows no output, no errors or anything like that. It just prints about 4 blank lines.
Has anyone else experience this problem before and how did you fix it?

C:\xampp\htdocs\project\app>cake



C:\xampp\htdocs\project\app>

解决方案

cake is not directly available in app - while you are in the right folder you still need to call the cake command relative from there:

\app>.\Console\cake

Note that this syntax is unique to Windows

For UNIX use

\app>Console/cake

In case you are using an old app version or didnt bake your application with the Console folder (which you should, though), you can also call the cake core version of it relatively from the APP dir:

\app>..\lib\Cake\Console\cake

(WIN)

\app>../lib/Cake/Console/cake

(UNIX)

Either way the cake file needs to have sufficient execution rights (UNIX mainly) and PHP must be in the system env path. Then it will all work out of the box.

这篇关于键入命令“蛋糕”在控制台中显示没有输出的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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