我尝试使用'cake bake'命令与Cakephp 2.0.4稳定烘焙 但它给了我以下错误......
Unable to set console path for app/Console.
CakePHP is on your `include_path`. CAKE_CORE_INCLUDE_PATH will be set, but commented out.
Unable to set CAKE_CORE_INCLUDE_PATH, you should change it in /home/wmetools/public_html/security/app/Console/myapp/webroot/index.php
Project baked but with some issues..
Your database configuration was not found. Take a moment to create one.
为什么会发生这种情况?
答案 0 :(得分:0)
如果你想说
您的include_path
上的CakePHP 不
**来自webroot / index.php文件的代码**
为了便于开发,CakePHP使用PHP的include_path。如果你 无法修改include_path设置此值。
设置包含路径将消除此错误。有两种方法可以实现这一目标:
或
//这种方法不建议用于此情况
1. ini_set("include_path", ".:../:./include:../include");
如果您不想搞砸所有这些,只需在index.php文件中手动设置包含路径。