0

当我尝试运行蛋糕壳时..我收到一条非常奇怪的消息..见下文;

X-Powered-By: PHP/5.4.11
Content-type: text/html

################################################################################
#
# Bake is a shell script for running CakePHP bake script
# PHP 5
#
# CakePHP(tm) :  Rapid Development Framework (http://cakephp.org)
# Copyright 2005-2012, Cake Software Foundation, Inc.
#
# Licensed under The MIT License
# Redistributions of files must retain the above copyright notice.
#
# @copyright    Copyright 2005-2012, Cake Software Foundation, Inc.
# @link         http://cakephp.org CakePHP(tm) Project
# @package      app.Console
# @since        CakePHP(tm) v 2.0
# @license      MIT License (http://www.opensource.org/licenses/mit-license.php)
#
################################################################################
LIB=$(cd -P -- "$(dirname -- "$0")" && pwd -P) && LIB=$LIB/$(basename -- "$0")

while [ -h "$LIB" ]; do
        DIR=$(dirname -- "$LIB")
        SYM=$(readlink "$LIB")
        LIB=$(cd "$DIR" && cd $(dirname -- "$SYM") && pwd)/$(basename -- "$SYM")
done

LIB=$(dirname -- "$LIB")/
APP=$(dirname $(cd $(dirname $0) && pwd))

exec php -q "$LIB"cake.php -working "$APP" "$@"

exit;

任何想法如何解决这个问题?

我正在使用 php 5.4.11,并且我没有对 cakephp 所做的代码进行任何更改..

谢谢

4

1 回答 1

1

我是从 cake.. 调用方法而不是 cake.php

感谢@noslone!

要加载外壳程序,您应该编写以下命令

$  php cake.php (Then the appropriate shell name)
于 2013-01-23T15:51:44.947 回答