当我尝试运行蛋糕壳时......我收到一条非常奇怪的消息..见下文;
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所做的代码进行任何更改..
由于
答案 0 :(得分:1)
我从蛋糕中调用方法..而不是cake.php
感谢@noslone!
要加载shell,您应该编写以下命令
$ php cake.php (Then the appropriate shell name)